login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
26
Re: [PATCH] just rename call_rcu_bh instead of making it a macro
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Paul E. McKenney <paulmck@...>
To: Steven Rostedt <rostedt@...>
Cc: LKML <linux-kernel@...>, RT <linux-rt-users@...>, Thomas Gleixner <tglx@...>, Ingo Molnar <mingo@...>
Subject:
Re: [PATCH] just rename call_rcu_bh instead of making it a macro
Date: Wednesday, September 26, 2007 - 7:17 pm
On Wed, Sep 26, 2007 at 02:17:47PM -0400, Steven Rostedt wrote:
quoted text
> 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.
Looks good! Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
quoted text
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> > > Index: linux-2.6.23-rc8-rt1/include/linux/rcupreempt.h > =================================================================== > --- linux-2.6.23-rc8-rt1.orig/include/linux/rcupreempt.h > +++ linux-2.6.23-rc8-rt1/include/linux/rcupreempt.h > @@ -42,9 +42,14 @@ > #include <linux/cpumask.h> > #include <linux/seqlock.h> > > -#define rcu_qsctr_inc(cpu) > -#define rcu_bh_qsctr_inc(cpu) > -#define call_rcu_bh(head, rcu) call_rcu(head, rcu) > +#define rcu_qsctr_inc(cpu) do { } while (0) > +#define rcu_bh_qsctr_inc(cpu) do { } while (0) > +/* > + * Someone might want to pass call_rcu_bh as a function pointer. > + * So this needs to just be a rename and not a macro function. > + * (no parentheses) > + */ > +#define call_rcu_bh call_rcu > > extern void __rcu_read_lock(void); > extern void __rcu_read_unlock(void); > >
-
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] just rename call_rcu_bh instead of making it a macro
, Steven Rostedt
, (Wed Sep 26, 2:17 pm)
Re: [PATCH] just rename call_rcu_bh instead of making it a m...
, Paul E. McKenney
, (Wed Sep 26, 7:17 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Linus Torvalds
Linux 2.6.27-rc8
Christoph Lameter
Re: Major regression on hackbench with SLUB (more numbers)
Mike Travis
Re: [RFC 00/15] x86_64: Optimize percpu accesses
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Hugh Dickins
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
580 guests
online.
Syndicate