xfs
[Top] [All Lists]

Re: XFS memory allocation deadlock in 2.6.38

To: Johannes Weiner <hannes@xxxxxxxxxxx>
Subject: Re: XFS memory allocation deadlock in 2.6.38
From: "'Christoph Hellwig'" <hch@xxxxxxxxxxxxx>
Date: Tue, 29 Mar 2011 15:43:24 -0400
Cc: "'Christoph Hellwig'" <hch@xxxxxxxxxxxxx>, Sean Noonan <Sean.Noonan@xxxxxxxxxxxx>, "'Michel Lespinasse'" <walken@xxxxxxxxxx>, "'linux-kernel@xxxxxxxxxxxxxxx'" <linux-kernel@xxxxxxxxxxxxxxx>, Martin Bligh <Martin.Bligh@xxxxxxxxxxxx>, Trammell Hudson <Trammell.Hudson@xxxxxxxxxxxx>, Christos Zoulas <Christos.Zoulas@xxxxxxxxxxxx>, "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx>, Stephen Degler <Stephen.Degler@xxxxxxxxxxxx>, "'linux-mm@xxxxxxxxx'" <linux-mm@xxxxxxxxx>
In-reply-to: <20110329193907.GK2310@xxxxxxxxxxx>
References: <081DDE43F61F3D43929A181B477DCA95639B52FD@xxxxxxxxxxxxxxxxxxxx> <081DDE43F61F3D43929A181B477DCA95639B5327@xxxxxxxxxxxxxxxxxxxx> <20110324174311.GA31576@xxxxxxxxxxxxx> <AANLkTikwwRm6FHFtEdUg54NvmKdswQw-NPH5dtq1mXBK@xxxxxxxxxxxxxx> <081DDE43F61F3D43929A181B477DCA95639B5349@xxxxxxxxxxxxxxxxxxxx> <BANLkTin0jJevStg5P2hqsLbqMzo3o30sYg@xxxxxxxxxxxxxx> <081DDE43F61F3D43929A181B477DCA95639B534E@xxxxxxxxxxxxxxxxxxxx> <081DDE43F61F3D43929A181B477DCA95639B5359@xxxxxxxxxxxxxxxxxxxx> <20110329192434.GA10536@xxxxxxxxxxxxx> <20110329193907.GK2310@xxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Tue, Mar 29, 2011 at 09:39:07PM +0200, Johannes Weiner wrote:
> > -   ptr = vmalloc(size);
> > +   ptr = __vmalloc(size, GFP_NOFS | __GFP_HIGHMEM, PAGE_KERNEL);
> >     if (ptr)
> >             memset(ptr, 0, size);
> >     return ptr;
> 
> Note that vmalloc is currently broken in that it does a GFP_KERNEL
> allocation if it has to allocate page table pages, even when invoked
> with GFP_NOFS:
> 
>       http://marc.info/?l=linux-mm&m=128942194520631&w=4

Oh great.  In that case we had a chance to hit the deadlock even before
the offending commit, just a much smaller one.

<Prev in Thread] Current Thread [Next in Thread>