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

From: Dipankar Sarma (dipankar@in.ibm.com)
Date: Mon Sep 30 2002 - 06:15:47 EST


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/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:44 EST