lkml.org 
[lkml]   [2009]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1/5] fs: make use of rcu helpers
On Wed, Sep 16 2009, npiggin@suse.de wrote:
> list_add_tail_rcu contains required barriers.

Thanks, applied as well.

>
> Signed-off-by: Nick Piggin <npiggin@suse.de>
> ---
> fs/fs-writeback.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> Index: linux-2.6/fs/fs-writeback.c
> ===================================================================
> --- linux-2.6.orig/fs/fs-writeback.c
> +++ linux-2.6/fs/fs-writeback.c
> @@ -152,11 +152,6 @@ static void bdi_queue_work(struct backin
> atomic_set(&work->pending, bdi->wb_cnt);
> BUG_ON(!bdi->wb_cnt);
>
> - /*
> - * Make sure stores are seen before it appears on the list
> - */
> - smp_mb();
> -
> spin_lock(&bdi->wb_lock);
> list_add_tail_rcu(&work->list, &bdi->work_list);
> spin_unlock(&bdi->wb_lock);
>
>

--
Jens Axboe



\
 
 \ /
  Last update: 2009-09-15 21:35    [W:0.073 / U:0.056 seconds]
©2003-2014 Jasper Spaans. Advertise on this site