linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: "Holger Hoffstätte" <holger@applied-asynchrony.com>
Cc: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>,
	linux-mm@kvack.org, Minchan Kim <minchan@kernel.org>,
	Brian Foster <bfoster@redhat.com>,
	linux-kernel@vger.kernel.org, "xfs@oss.sgi.com" <xfs@oss.sgi.com>
Subject: Re: shrink_active_list/try_to_release_page bug? (was Re: xfs trace in 4.4.2 / also in 4.3.3 WARNING fs/xfs/xfs_aops.c:1232 xfs_vm_releasepage)
Date: Fri, 3 Jun 2016 09:08:13 +1000	[thread overview]
Message-ID: <20160602230813.GQ12670@dastard> (raw)
In-Reply-To: <57502A2E.60702@applied-asynchrony.com>

On Thu, Jun 02, 2016 at 02:44:30PM +0200, Holger Hoffstatte wrote:
> On 06/02/16 14:13, Stefan Priebe - Profihost AG wrote:
> > 
> > Am 31.05.2016 um 09:31 schrieb Dave Chinner:
> >> On Tue, May 31, 2016 at 08:11:42AM +0200, Stefan Priebe - Profihost AG wrote:
> >>>> I'm half tempted at this point to mostly ignore this mm/ behavour
> >>>> because we are moving down the path of removing buffer heads from
> >>>> XFS. That will require us to do different things in ->releasepage
> >>>> and so just skipping dirty pages in the XFS code is the best thing
> >>>> to do....
> >>>
> >>> does this change anything i should test? Or is 4.6 still the way to go?
> >>
> >> Doesn't matter now - the warning will still be there on 4.6. I think
> >> you can simply ignore it as the XFS code appears to be handling the
> >> dirty page that is being passed to it correctly. We'll work out what
> >> needs to be done to get rid of the warning for this case, wether it
> >> be a mm/ change or an XFS change.
> > 
> > Any idea what i could do with 4.4.X? Can i safely remove the WARN_ONCE
> > statement?
> 
> By definition it won't break anything since it's just a heads-up message,
> so yes, it should be "safe". However if my understanding of the situation
> is correct, mainline commit f0281a00fe "mm: workingset: only do workingset
> activations on reads" (+ friends) in 4.7 should effectively prevent this
> from happenning. Can someone confirm or deny this?

I don't think it will.  The above commits will avoid putting
/write-only/ dirty pages on the active list from the write() syscall
vector, but it won't prevent pages that are read first then dirtied
from ending up on the active list. e.g. a mmap write will first read
the page from disk to populate the page (hence it ends up on the
active list), then the page gets dirtied and ->page_mkwrite is
called to tell the filesystem....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2016-06-02 23:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20160511133417.GA42410@bfoster.bfoster>
     [not found] ` <57333BA4.4040402@profihost.ag>
     [not found]   ` <20160511155951.GF42410@bfoster.bfoster>
     [not found]     ` <5738576B.4010208@profihost.ag>
     [not found]       ` <20160515115017.GA6433@laptop.bfoster>
     [not found]         ` <57386E84.3090606@profihost.ag>
     [not found]           ` <20160516010602.GA24980@bfoster.bfoster>
     [not found]             ` <57420A47.2000700@profihost.ag>
     [not found]               ` <20160522213850.GE26977@dastard>
     [not found]                 ` <574BEA84.3010206@profihost.ag>
2016-05-30 22:36                   ` Dave Chinner
2016-05-31  1:07                     ` Minchan Kim
2016-05-31  2:55                       ` Dave Chinner
2016-05-31  3:59                         ` Minchan Kim
2016-05-31  6:07                           ` Dave Chinner
2016-05-31  6:11                             ` Stefan Priebe - Profihost AG
2016-05-31  7:31                               ` Dave Chinner
2016-05-31  8:03                                 ` Stefan Priebe - Profihost AG
2016-06-02 12:13                                 ` Stefan Priebe - Profihost AG
2016-06-02 12:44                                   ` Holger Hoffstätte
2016-06-02 23:08                                     ` Dave Chinner [this message]
2016-05-31  9:50                       ` Jan Kara
2016-06-01  1:38                         ` Minchan Kim
2016-08-17 15:37                         ` Andreas Grünbacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160602230813.GQ12670@dastard \
    --to=david@fromorbit.com \
    --cc=bfoster@redhat.com \
    --cc=holger@applied-asynchrony.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=minchan@kernel.org \
    --cc=s.priebe@profihost.ag \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox