Re: [PATCH] 2.5.39-mm1 fixes 2/3

Dipankar Sarma (dipankar@in.ibm.com)
Mon, 30 Sep 2002 16:45:47 +0530


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/