提交 5a93a064 编写于 作者: C Christoph Hellwig 提交者: Alex Elder

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: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NDave Chinner <dchinner@redhat.com>
Signed-off-by: NAlex Elder <aelder@sgi.com>
上级 a9add83e
...@@ -1623,13 +1623,6 @@ xfs_buf_delwri_promote( ...@@ -1623,13 +1623,6 @@ xfs_buf_delwri_promote(
spin_unlock(&btp->bt_delwri_lock); spin_unlock(&btp->bt_delwri_lock);
} }
STATIC void
xfs_buf_runall_queues(
struct workqueue_struct *queue)
{
flush_workqueue(queue);
}
/* /*
* Move as many buffers as specified to the supplied list * Move as many buffers as specified to the supplied list
* idicating if we skipped any buffers to prevent deadlocks. * idicating if we skipped any buffers to prevent deadlocks.
...@@ -1752,9 +1745,7 @@ xfs_flush_buftarg( ...@@ -1752,9 +1745,7 @@ xfs_flush_buftarg(
LIST_HEAD(wait_list); LIST_HEAD(wait_list);
struct blk_plug plug; struct blk_plug plug;
xfs_buf_runall_queues(xfsconvertd_workqueue); flush_workqueue(xfslogd_workqueue);
xfs_buf_runall_queues(xfsdatad_workqueue);
xfs_buf_runall_queues(xfslogd_workqueue);
set_bit(XBT_FORCE_FLUSH, &target->bt_flags); set_bit(XBT_FORCE_FLUSH, &target->bt_flags);
pincount = xfs_buf_delwri_split(target, &tmp_list, 0); pincount = xfs_buf_delwri_split(target, &tmp_list, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册