lkml.org 
[lkml]   [2014]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH tip/core/rcu 10/12] block: Substitute rcu_access_pointer() for rcu_dereference_raw()
    On Mon, Feb 17 2014, Paul E. McKenney wrote:
    > From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
    >
    > (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



    \
     
     \ /
      Last update: 2014-02-18 22:01    [W:4.852 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site