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@xxxxxx>
--- xfs.orig/fs/xfs/xfs_buf.c 2011-10-10 18:43:04.493870127 +0200
+++ xfs/fs/xfs/xfs_buf.c 2011-10-10 18:43:20.552427959 +0200
@@ -1623,13 +1623,6 @@ xfs_buf_delwri_promote(
- struct workqueue_struct *queue)
* Move as many buffers as specified to the supplied list
* idicating if we skipped any buffers to prevent deadlocks.
@@ -1752,9 +1745,7 @@ xfs_flush_buftarg(
struct blk_plug plug;
pincount = xfs_buf_delwri_split(target, &tmp_list, 0);