[Top] [All Lists]

fput under mmap_sem

To: xfs@xxxxxxxxxxx, linux-mm@xxxxxxxxx
Subject: fput under mmap_sem
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Wed, 18 Mar 2009 03:13:13 -0400
In-reply-to: <20090315221921.GY26138@disturbed>
References: <200903151459.01320.denys@xxxxxxxxxxx> <20090315221921.GY26138@disturbed>
User-agent: Mutt/1.5.18 (2008-05-17)
On Mon, Mar 16, 2009 at 09:19:21AM +1100, Dave Chinner wrote:
> This is a VM problem where it calls fput() with the mmap_sem() held
> in remove_vma(). It makes the incorrect assumption that filesystems
> will never use the same lock in the IO path and the inode release path.
> This can deadlock if you are really unlucky.

I really wonder why other filesystems haven't hit this yet.  Any chance
we can get the fput moved out of mmap_sem to get rid of this class of

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