]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: log the inode in ->write_inode calls for kupdate
authorChristoph Hellwig <hch@infradead.org>
Sun, 18 Dec 2011 15:49:55 +0000 (15:49 +0000)
committerBen Myers <bpm@sgi.com>
Fri, 23 Dec 2011 22:41:47 +0000 (16:41 -0600)
commit5f71af2c43d970c71d6d36aefb2ff9575e20f0dd
tree534cfbf7315e4ea6363792be9acf83029cf034a2
parentc583359c3e4a8309f10951c237efc48a35d6d04b
xfs: log the inode in ->write_inode calls for kupdate

If the writeback code writes back an inode because it has expired we currently
use the non-blockin ->write_inode path.  This means any inode that is pinned
is skipped.  With delayed logging and a workload that has very little log
traffic otherwise it is very likely that an inode that gets constantly
written to is always pinned, and thus we keep refusing to write it.  The VM
writeback code at that point redirties it and doesn't try to write it again
for another 30 seconds.  This means under certain scenarious time based
metadata writeback never happens.

Fix this by calling into xfs_log_inode for kupdate in addition to data
integrity syncs, and thus transfer the inode to the log ASAP.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Tested-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_super.c