lkml.org 
[lkml]   [2002]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH] 2.5.39-mm1 fixes 2/3
    The read_barrier_depends patch didn't have compilable list_for_each_rcu()
    macros. These macros allow a simpler interface to use RCU by taking
    care of memory barriers. Fix against 2.5.39-mm1.

    Thanks
    --
    Dipankar Sarma <dipankar@in.ibm.com> http://lse.sourceforge.net
    Linux Technology Center, IBM Software Lab, Bangalore, India.


    --- include/linux/list.h.orig Mon Sep 30 13:59:10 2002
    +++ include/linux/list.h Mon Sep 30 13:59:23 2002
    @@ -307,7 +307,7 @@
    */
    #define list_for_each_rcu(pos, head) \
    for (pos = (head)->next, prefetch(pos->next); pos != (head); \
    - pos = pos->next, ({ read_barrier_depends(); 0}), prefetch(pos->next))
    + pos = pos->next, ({ read_barrier_depends(); 0;}), prefetch(pos->next))

    /**
    * list_for_each_safe_rcu - iterate over an rcu-protected list safe
    @@ -318,7 +318,7 @@
    */
    #define list_for_each_safe_rcu(pos, n, head) \
    for (pos = (head)->next, n = pos->next; pos != (head); \
    - pos = n, ({ read_barrier_depends(); 0}), n = pos->next)
    + pos = n, ({ read_barrier_depends(); 0;}), n = pos->next)

    #endif /* __KERNEL__ || _LVM_H_INCLUDE */

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 13:29    [W:0.021 / U:66.608 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site