Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rcu: just rename call_rcu_bh instead of making it a macro

Seems that I found a box that has a config that passes call_rcu_bh as a
function pointer (see net/sctp/sm_make_chunk.c), so declaring the
call_rcu_bh has a macro function isn't good enough.

This patch makes it just another name of call_rcu for rcupreempt.

Signed-off-by: Steven Rostedt <srostedt@redhat.org>
Reviewed-by: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Steven Rostedt and committed by
Ingo Molnar
dd0078f4 34d7c2b3

+7 -1
+7 -1
include/linux/rcupreempt.h
··· 57 57 rdssp->sched_qs++; 58 58 } 59 59 #define rcu_bh_qsctr_inc(cpu) 60 - #define call_rcu_bh(head, rcu) call_rcu(head, rcu) 60 + 61 + /* 62 + * Someone might want to pass call_rcu_bh as a function pointer. 63 + * So this needs to just be a rename and not a macro function. 64 + * (no parentheses) 65 + */ 66 + #define call_rcu_bh call_rcu 61 67 62 68 /** 63 69 * call_rcu_sched - Queue RCU callback for invocation after sched grace period.