[PATCH 02/34] xfs: use KM_NOFS for allocations during attribute list operations
hch at infradead.org
Tue Dec 21 09:16:14 CST 2010
On Tue, Dec 21, 2010 at 06:28:58PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner at redhat.com>
> When listing attributes, we are doiing memory allocations under the
> inode ilock using only KM_SLEEP. This allows memory allocation to
> recurse back into the filesystem and do writeback, which may the
> ilock we already hold on the current inode. THis will deadlock.
> Hence use KM_NOFS for such allocations outside of transaction
> context to ensure that reclaim recursion does not occur.
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the xfs