]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: do not flush data workqueues in xfs_flush_buftarg
authorChristoph Hellwig <hch@infradead.org>
Mon, 10 Oct 2011 16:52:53 +0000 (16:52 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Oct 2011 03:34:31 +0000 (22:34 -0500)
commita10c3acdd6e3b05b0824e4150bfe2b500b8f0aa3
tree67d51441dba4fd8645ec9f5eaacb5d60c62049c7
parent0be8483839f590d99607ecf3b5efceb1cfa368ed
xfs: do not flush data workqueues in xfs_flush_buftarg

When we call xfs_flush_buftarg (generally from sync or umount) it already
is too late to flush the data workqueues, as I/O completion is signalled
for them and we are thus already done with the data we would flush here.

There are places where flushing them might be useful, but the current
sync interface doesn't give us that opportunity.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_buf.c