From: Kieran Mansley <kmansley@solarflare.com>
To: Keir Fraser <keir@xensource.com>
Cc: muli@il.ibm.com, netdev@vger.kernel.org,
xen-devel@lists.xensource.com,
Stephen Hemminger <shemminger@linux-foundation.org>,
herbert@gondor.apana.org.au
Subject: Re: [Xen-devel] Re: [PATCH 3/4] [Net] Support Xen accelerated network plugin modules
Date: Tue, 22 May 2007 15:20:01 +0100 [thread overview]
Message-ID: <1179843601.28562.55.camel@moonstone.uk.level5networks.com> (raw)
In-Reply-To: <C278B79D.F53F%keir@xensource.com>
On Tue, 2007-05-22 at 15:07 +0100, Keir Fraser wrote:
> On 22/5/07 13:44, "Kieran Mansley" <kmansley@solarflare.com> wrote:
>
> >> Eagerly zap the function pointers, then wait one RCU period so every CPU
> >> goes through a quiescent point before unloading the module?
> >>
> >> -- Keir
> >
> > Am I right in thinking that if one of the functions that was protected
> > by RCU was to block, that would be a bad thing? Clearly the data path
> > hooks can't/don't block, but I'm not sure it's so obvious for things
> > like probing a new device.
>
> Are there still module reference counts? If so, functions which may block
> can manipulate their module's reference count.
>
> Or if not, I guess the accelerator module can have a private reference count
> checked by whatever unload function gets called from the RCU subsystem. So
> that unload becomes deferred until *both* an RCU phase has passed *and* a
> reference count has fallen to zero.
That's true I suppose, but it replaces the current spinlock and ref
count with an RCU and a ref count, so does little to address the
complexity that Stephen Hemminger was rightly concerned about. It does
I suppose put the complexity in the plugin module rather than netfront,
and only have it when necessary, which might make it better, but makes
the job of writing the plugin modules harder and more prone to bugs.
Kieran
next prev parent reply other threads:[~2007-05-22 14:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-18 13:16 [PATCH 3/4] [Net] Support Xen accelerated network plugin modules Kieran Mansley
2007-05-21 17:50 ` Stephen Hemminger
2007-05-22 7:00 ` Kieran Mansley
2007-05-21 17:52 ` Stephen Hemminger
2007-05-22 7:15 ` Kieran Mansley
2007-05-22 7:28 ` Kieran Mansley
2007-05-22 7:48 ` [Xen-devel] " Keir Fraser
2007-05-22 7:59 ` Kieran Mansley
2007-05-22 12:44 ` Kieran Mansley
2007-05-22 14:07 ` Keir Fraser
2007-05-22 14:20 ` Kieran Mansley [this message]
2007-05-22 15:05 ` Stephen Hemminger
2007-05-22 16:06 ` Kieran Mansley
2007-05-25 6:53 ` Andi Kleen
2007-05-21 17:54 ` Stephen Hemminger
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=1179843601.28562.55.camel@moonstone.uk.level5networks.com \
--to=kmansley@solarflare.com \
--cc=herbert@gondor.apana.org.au \
--cc=keir@xensource.com \
--cc=muli@il.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@linux-foundation.org \
--cc=xen-devel@lists.xensource.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;
as well as URLs for NNTP newsgroup(s).