]> git.hungrycats.org Git - linux/commit
[PATCH] rcu: introduce call_rcu_bh()
authorDipankar Sarma <dipankar@in.ibm.com>
Mon, 23 Aug 2004 05:58:16 +0000 (22:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 05:58:16 +0000 (22:58 -0700)
commitf4d4d3f33efca5261c6313ead7d4b6d3a6add711
treedad2fdbe47a125488716594bb2edf28f87b62d67
parenta879f6e985b868512fb2aecf183be6caf82b7023
[PATCH] rcu: introduce call_rcu_bh()

Introduces call_rcu_bh() to be used when critical sections are mostly in
softirq context.

This patch introduces a new api - call_rcu_bh().  This is to be used for RCU
callbacks for whom the critical sections are mostly in softirq context.  These
callbacks consider completion of a softirq handler to be a quiescent state.
So, in order to make reader critical sections safe in process context,
rcu_read_lock_bh() and rcu_read_unlock_bh() must be used.  Use of softirq
handler completion as a quiescent state speeds up RCU grace periods and
prevents too many callbacks getting queued up in softirq-heavy workloads like
network stack.

Signed-off-by: Dipankar Sarma <dipankar@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/rcupdate.h
kernel/rcupdate.c
kernel/softirq.c