From: "Paul E. McKenney" <paulmck@us.ibm.com>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: linux-kernel@vger.kernel.org, dipankar@in.ibm.com,
antonb@au1.ibm.com, davej@codemonkey.org.uk, hpa@zytor.com,
len.brown@intel.com, andmike@us.ibm.com, rth@twiddle.net,
rusty@au1.ibm.com, schwidefsky@de.ibm.com,
manfred@colorfullife.com
Subject: Re: [RFC,PATCH 3/4] Change synchronize_kernel to _rcu and _sched
Date: Thu, 7 Apr 2005 18:09:49 -0700 [thread overview]
Message-ID: <20050408010949.GB1299@us.ibm.com> (raw)
In-Reply-To: <20050407231653.GA13563@electric-eye.fr.zoreil.com>
On Fri, Apr 08, 2005 at 01:16:53AM +0200, Francois Romieu wrote:
> Paul E. McKenney <paulmck@us.ibm.com> :
> > This patch changes calls to synchronize_kernel(), deprecated in the
> > earlier "Deprecate synchronize_kernel, GPL replacement" patch to
> > instead call the new synchronize_rcu() and synchronize_sched() APIs.
> [...]
> > diff -urpN -X dontdiff linux-2.6.12-rc1/drivers/net/r8169.c linux-2.6.12-rc1-bettersk/drivers/net/r8169.c
> > --- linux-2.6.12-rc1/drivers/net/r8169.c Thu Mar 31 09:53:08 2005
> > +++ linux-2.6.12-rc1-bettersk/drivers/net/r8169.c Fri Apr 1 21:41:38 2005
> > @@ -2385,7 +2385,7 @@ core_down:
> > }
> >
> > /* Give a racing hard_start_xmit a few cycles to complete. */
> > - synchronize_kernel();
> > + synchronize_sched(); /* FIXME: should this be synchronize_irq()? */
> >
> > /*
> > * And now for the 50k$ question: are IRQ disabled or not ?
>
> (answering the FIXME)
>
> The race with the irq is handled somewhere else. As the comment suggests,
> this part is racing with the hard_start_xmit() handler. If I read correctly
> net/core/dev.c::dev_queue_xmit, the code above simply needs the new
> synchronize_rcu().
That would be good! In your reading of the code, did you verify that
all instances of calls to hard_start_xmit() are in fact under either
rcu_read_lock() or rcu_read_lock_bh()?
Thanx, Paul
next prev parent reply other threads:[~2005-04-08 1:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-03 6:31 Paul E. McKenney
2005-04-07 23:16 ` Francois Romieu
2005-04-08 1:09 ` Paul E. McKenney [this message]
2005-04-09 8:56 ` Manfred Spraul
2005-04-09 12:20 ` Francois Romieu
2005-04-09 18:42 ` Manfred Spraul
2005-04-09 22:39 ` Francois Romieu
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=20050408010949.GB1299@us.ibm.com \
--to=paulmck@us.ibm.com \
--cc=andmike@us.ibm.com \
--cc=antonb@au1.ibm.com \
--cc=davej@codemonkey.org.uk \
--cc=dipankar@in.ibm.com \
--cc=hpa@zytor.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=manfred@colorfullife.com \
--cc=romieu@fr.zoreil.com \
--cc=rth@twiddle.net \
--cc=rusty@au1.ibm.com \
--cc=schwidefsky@de.ibm.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
all inboxes | Powered by JetHome®