]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: force buffer writeback before blocking on the ilock in inode reclaim
authorChristoph Hellwig <hch@infradead.org>
Tue, 6 Dec 2011 21:21:15 +0000 (16:21 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 16 Dec 2011 01:38:16 +0000 (17:38 -0800)
commit4880dd595f7766d0141ce2230425c13b7c643abe
tree0eb04d43a91dc98f773b75d2604232eaca8b4bfb
parent1026c37b3f196cbfddcdc21081271aca178e1f03
xfs: force buffer writeback before blocking on the ilock in inode reclaim

commit 4dd2cb4a28b7ab1f37163a4eba280926a13a8749 upstream.

If we are doing synchronous inode reclaim we block the VM from making
progress in memory reclaim.  So if we encouter a flush locked inode
promote it in the delwri list and wake up xfsbufd to write it out now.
Without this we can get hangs of up to 30 seconds during workloads hitting
synchronous inode reclaim.

The scheme is copied from what we do for dquot reclaims.

Reported-by: Simon Kirby <sim@hostway.ca>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Simon Kirby <sim@hostway.ca>
Signed-off-by: Ben Myers <bpm@sgi.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/xfs/linux-2.6/xfs_sync.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h