Re: [PATCH tip/core/rcu 10/12] block: Substitute rcu_access_pointer() for rcu_dereference_raw()

From: Jens Axboe
Date: Tue Feb 18 2014 - 15:21:55 EST


On Mon, Feb 17 2014, Paul E. McKenney wrote:
> From: "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx>
>
> (Trivial patch.)
>
> If the code is looking at the RCU-protected pointer itself, but not
> dereferencing it, the rcu_dereference() functions can be downgraded to
> rcu_access_pointer(). This commit makes this downgrade in blkg_destroy()
> and ioc_destroy_icq(), both of which simply compare the RCU-protected
> pointer against another pointer with no dereferencing.

Thanks Paul, applied.

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/