Commit da7f93e9 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Nathan Scott

[XFS] fix up per-device xfsbufd

SGI-PV: 947098
SGI-Modid: xfs-linux-melb:xfs-kern:203831a
Signed-off-by: default avatarChristoph Hellwig <hch@sgi.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent f5e596bb
...@@ -1649,14 +1649,13 @@ xfsbufd_wakeup( ...@@ -1649,14 +1649,13 @@ xfsbufd_wakeup(
int priority, int priority,
gfp_t mask) gfp_t mask)
{ {
xfs_buftarg_t *btp, *n; xfs_buftarg_t *btp;
spin_lock(&xfs_buftarg_lock); spin_lock(&xfs_buftarg_lock);
list_for_each_entry_safe(btp, n, &xfs_buftarg_list, bt_list) { list_for_each_entry(btp, &xfs_buftarg_list, bt_list) {
if (test_bit(XBT_FORCE_SLEEP, &btp->bt_flags)) if (test_bit(XBT_FORCE_SLEEP, &btp->bt_flags))
continue; continue;
set_bit(XBT_FORCE_FLUSH, &btp->bt_flags); set_bit(XBT_FORCE_FLUSH, &btp->bt_flags);
barrier();
wake_up_process(btp->bt_task); wake_up_process(btp->bt_task);
} }
spin_unlock(&xfs_buftarg_lock); spin_unlock(&xfs_buftarg_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment