lkml.org 
[lkml]   [2010]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 41/48] idr: __rcu annotations
    Date
    From: Arnd Bergmann <arnd@arndb.de>

    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Manfred Spraul <manfred@colorfullife.com>
    ---
    include/linux/idr.h | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/include/linux/idr.h b/include/linux/idr.h
    index e968db7..cdb715e 100644
    --- a/include/linux/idr.h
    +++ b/include/linux/idr.h
    @@ -50,14 +50,14 @@

    struct idr_layer {
    unsigned long bitmap; /* A zero bit means "space here" */
    - struct idr_layer *ary[1<<IDR_BITS];
    + struct idr_layer __rcu *ary[1<<IDR_BITS];
    int count; /* When zero, we can release it */
    int layer; /* distance from leaf */
    struct rcu_head rcu_head;
    };

    struct idr {
    - struct idr_layer *top;
    + struct idr_layer __rcu *top;
    struct idr_layer *id_free;
    int layers; /* only valid without concurrent changes */
    int id_free_cnt;
    --
    1.7.0


    \
     
     \ /
      Last update: 2010-05-04 22:29    [W:4.020 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site