From: Dipankar Sarma <dipankar@in.ibm.com>
To: Andrew Morton <akpm@osdl.org>
Cc: mpm@selenic.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] reduce rcu_head size [2/2]
Date: Tue, 22 Jun 2004 23:20:58 +0530 [thread overview]
Message-ID: <20040622175058.GB3968@in.ibm.com> (raw)
In-Reply-To: <20040620061224.GA14123@in.ibm.com>
On Sun, Jun 20, 2004 at 11:42:24AM +0530, Dipankar Sarma wrote:
> On Sat, Jun 19, 2004 at 12:04:14PM -0700, Andrew Morton wrote:
> > Dipankar Sarma <dipankar@in.ibm.com> wrote:
> > >
> > > This patch changes the call_rcu() API and avoids passing an
> > > argument to the callback function as suggested by Rusty.
> >
> > This breaks the bridge driver:
> >
> >
> > static void destroy_nbp(struct rcu_head *head)
> >
> > int br_add_if(struct net_bridge *br, struct net_device *dev)
> > {
> > struct net_bridge_port *p;
> >
> > ...
> > destroy_nbp(p);
>
> Crap. New patch that compiles fine.
>
Applies on top of the earlier patches.
Thanks
Dipankar
OK, yet another mistake. Add fastcall directive to call_rcu().
Signed-off-by: Dipankar Sarma <dipankar@in.ibm.com>
kernel/rcupdate.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -puN kernel/rcupdate.c~rcu-no-arg-fastcall-fix kernel/rcupdate.c
--- linux-2.6.6-rcu/kernel/rcupdate.c~rcu-no-arg-fastcall-fix 2004-06-22 23:14:22.000000000 +0530
+++ linux-2.6.6-rcu-dipankar/kernel/rcupdate.c 2004-06-22 23:19:26.000000000 +0530
@@ -65,7 +65,8 @@ static DEFINE_PER_CPU(struct tasklet_str
* The read-side of critical section that use call_rcu() for updation must
* be protected by rcu_read_lock()/rcu_read_unlock().
*/
-void call_rcu(struct rcu_head *head, void (*func)(struct rcu_head *rcu))
+void fastcall call_rcu(struct rcu_head *head,
+ void (*func)(struct rcu_head *rcu))
{
int cpu;
unsigned long flags;
_
next prev parent reply other threads:[~2004-06-22 18:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-16 5:46 [PATCH] reduce rcu_head size [0/2] Dipankar Sarma
2004-06-16 5:47 ` [PATCH] reduce rcu_head size [1/2] Dipankar Sarma
2004-06-16 5:47 ` [PATCH] reduce rcu_head size [2/2] Dipankar Sarma
2004-06-19 19:04 ` Andrew Morton
2004-06-20 6:12 ` Dipankar Sarma
2004-06-22 17:50 ` Dipankar Sarma [this message]
2004-06-22 17:57 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040622175058.GB3968@in.ibm.com \
--to=dipankar@in.ibm.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox