diff options
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index cb77f99cbef1..6282f034b269 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c | |||
| @@ -1649,14 +1649,13 @@ xfsbufd_wakeup( | |||
| 1649 | int priority, | 1649 | int priority, |
| 1650 | gfp_t mask) | 1650 | gfp_t mask) |
| 1651 | { | 1651 | { |
| 1652 | xfs_buftarg_t *btp, *n; | 1652 | xfs_buftarg_t *btp; |
| 1653 | 1653 | ||
| 1654 | spin_lock(&xfs_buftarg_lock); | 1654 | spin_lock(&xfs_buftarg_lock); |
| 1655 | list_for_each_entry_safe(btp, n, &xfs_buftarg_list, bt_list) { | 1655 | list_for_each_entry(btp, &xfs_buftarg_list, bt_list) { |
| 1656 | if (test_bit(XBT_FORCE_SLEEP, &btp->bt_flags)) | 1656 | if (test_bit(XBT_FORCE_SLEEP, &btp->bt_flags)) |
| 1657 | continue; | 1657 | continue; |
| 1658 | set_bit(XBT_FORCE_FLUSH, &btp->bt_flags); | 1658 | set_bit(XBT_FORCE_FLUSH, &btp->bt_flags); |
| 1659 | barrier(); | ||
| 1660 | wake_up_process(btp->bt_task); | 1659 | wake_up_process(btp->bt_task); |
| 1661 | } | 1660 | } |
| 1662 | spin_unlock(&xfs_buftarg_lock); | 1661 | spin_unlock(&xfs_buftarg_lock); |
