linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2] iomap: avoid deadlock if memory reclaim is triggered in writepage path
       [not found]     ` <20200609143211.GA22303@infradead.org>
@ 2020-06-09 15:36       ` Yafang Shao
  0 siblings, 0 replies; only message in thread
From: Yafang Shao @ 2020-06-09 15:36 UTC (permalink / raw)
  To: Christoph Hellwig, Michal Hocko, Andrew Morton
  Cc: Darrick J. Wong, Dave Chinner, linux-xfs, linux-fsdevel, Linux MM

On Tue, Jun 9, 2020 at 10:32 PM Christoph Hellwig <hch@infradead.org> wrote:
>
> On Tue, Jun 09, 2020 at 10:28:06PM +0800, Yafang Shao wrote:
> > On Tue, Jun 9, 2020 at 10:03 PM Christoph Hellwig <hch@infradead.org> wrote:
> > >
> > > On Thu, Jun 04, 2020 at 03:05:47AM -0400, Yafang Shao wrote:
> > > > Recently there is a XFS deadlock on our server with an old kernel.
> > > > This deadlock is caused by allocating memory in xfs_map_blocks() while
> > > > doing writeback on behalf of memroy reclaim. Although this deadlock happens
> > > > on an old kernel, I think it could happen on the upstream as well. This
> > > > issue only happens once and can't be reproduced, so I haven't tried to
> > > > reproduce it on upsteam kernel.
> > >
> > > The report looks sensible, but I don't think the iomap code is the
> > > right place for this.  Until/unless the VM people agree that
> > > ->writepages(s) generally should not recurse into the fs I think the
> > > low-level file system allocating is the right place, so xfs_map_blocks
> > > would seem like the correct place.
> >
> > Thanks for your comment.
> > That is what I did in the previous version [1].
> > So should I resend the v1 ?
>
> Well, v1 won't apply.  But I do prefer the approach there.

All right. Let's include MM maintainers and see the opinion from them.

Hi Michal, Andrew,

What's your opinion on this XFS deadlock ?
Should ->writepages(s) generally not recurse into the fs ?


-- 
Thanks
Yafang


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-09 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1591254347-15912-1-git-send-email-laoar.shao@gmail.com>
     [not found] ` <20200609140304.GA11626@infradead.org>
     [not found]   ` <CALOAHbCeFFPCVS-toSC32qtLqQsEF1KG6p0OBXkQb=T2g6YpYw@mail.gmail.com>
     [not found]     ` <20200609143211.GA22303@infradead.org>
2020-06-09 15:36       ` [PATCH v2] iomap: avoid deadlock if memory reclaim is triggered in writepage path Yafang Shao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).