aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/fs-writeback.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 34757758511a..59c99e729187 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -151,10 +151,10 @@ static void bdi_queue_work(struct backing_dev_info *bdi, struct bdi_work *work)
151 BUG_ON(!bdi->wb_cnt); 151 BUG_ON(!bdi->wb_cnt);
152 152
153 /* 153 /*
154 * Make sure stores are seen before it appears on the list 154 * list_add_tail_rcu() contains the necessary barriers to
155 * make sure the above stores are seen before the item is
156 * noticed on the list
155 */ 157 */
156 smp_mb();
157
158 spin_lock(&bdi->wb_lock); 158 spin_lock(&bdi->wb_lock);
159 list_add_tail_rcu(&work->list, &bdi->work_list); 159 list_add_tail_rcu(&work->list, &bdi->work_list);
160 spin_unlock(&bdi->wb_lock); 160 spin_unlock(&bdi->wb_lock);