diff options
author | Nick Piggin <npiggin@suse.de> | 2009-09-15 15:32:58 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-09-16 09:18:52 -0400 |
commit | deed62edffe600bc5b379c872d3004116e001b66 (patch) | |
tree | 2c1837366be7dac9986a250d8b5cebf6f54fdea0 /fs | |
parent | 49db041430e8a856dbc3af15430bf068f1c74655 (diff) |
writeback: remove smp_mb(), it's not needed with list_add_tail_rcu()
list_add_tail_rcu contains required barriers.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs-writeback.c | 6 |
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); |