[PATCH] rcu_do_batch: make ->qlen decrement irq safe
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 13 Sep 2006 03:35:55 +0000 (20:35 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 13 Sep 2006 14:32:14 +0000 (07:32 -0700)
commitdd9daa221e77f642954849a795fa7c59533a9b2f
tree6b207a5296063e1a773f36fb724402ea7cbab7eb
parent7fbb36451a91de6e8f9ece4f1f1ee9bd8ebf838a
[PATCH] rcu_do_batch: make ->qlen decrement irq safe

rcu_do_batch() decrements rdp->qlen with irqs enabled.  This is not good,
it can also be modified by call_rcu() from interrupt.

Decrement ->qlen once with irqs disabled, after a main loop.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Dipankar Sarma <dipankar@in.ibm.com>
Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/rcupdate.c