]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: do not update xa_last_pushed_lsn for locked items
authorChristoph Hellwig <hch@infradead.org>
Tue, 11 Oct 2011 15:14:08 +0000 (15:14 +0000)
committerAlex Elder <aelder@sgi.com>
Tue, 11 Oct 2011 16:02:48 +0000 (11:02 -0500)
commit1e7f47e666f554f747cc019a112489d36bf4a40a
treea9c8361b9f2d5b0364f5f4c3433e413b8f434dac
parent65feb5df88186717dcde0c6046b6d35fc17c6137
xfs: do not update xa_last_pushed_lsn for locked items

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>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_trans_ail.c