[PATCH] 2.5.39-mm1 fixes 1/3

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


Hi Andrew,

rcu_ltimer was used mostly for performance measurements and wasn't
completely preemption friendly. With this fix (against 2.5.39-mm1),
it should be now.

Thanks

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

--- kernel/rcupdate.c.orig Mon Sep 30 13:55:15 2002 +++ kernel/rcupdate.c Mon Sep 30 13:55:29 2002 @@ -60,12 +60,13 @@ */ void call_rcu(struct rcu_head *head, void (*func)(void *arg), void *arg) { - int cpu = smp_processor_id(); + int cpu; unsigned long flags; head->func = func; head->arg = arg; local_irq_save(flags); + cpu = smp_processor_id(); list_add_tail(&head->list, &RCU_nxtlist(cpu)); local_irq_restore(flags); } - 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