]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: do not update xa_last_pushed_lsn for locked items
authorChristoph Hellwig <hch@infradead.org>
Tue, 18 Oct 2011 14:23:17 +0000 (10:23 -0400)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:06 +0000 (11:17 -0800)
commit24483b60a6a6a416a19500fb472b09a64cddad22
treeb394bb8503273f15e5969920622245a08becf1af
parent754bd456496123855dc5ebd733ae02bc217d1818
xfs: do not update xa_last_pushed_lsn for locked items

commit bc6e588a8971aa74c02e42db4d6e0248679f3738 upstream

If an item was locked we should not update xa_last_pushed_lsn and thus skip
it when restarting the AIL scan as we need to be able to lock and write it
out as soon as possible.  Otherwise heavy lock contention might starve AIL
pushing too easily, especially given the larger backoff once we moved
xa_last_pushed_lsn all the way to the target lsn.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Stefan Priebe <s.priebe@profihost.ag>
Tested-by: Stefan Priebe <s.priebe@profihost.ag>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/xfs/xfs_trans_ail.c