All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xensource.com>
To: Muli Ben-Yehuda <muli@il.ibm.com>,
	Kieran Mansley <kmansley@solarflare.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH 3/4] Support accelerated network plugin modules
Date: Wed, 09 May 2007 14:09:13 +0100	[thread overview]
Message-ID: <C2678689.E96F%keir@xensource.com> (raw)
In-Reply-To: <20070509121707.GQ4313@rhun.haifa.ibm.com>

On 9/5/07 13:17, "Muli Ben-Yehuda" <muli@il.ibm.com> wrote:

>> The first macro I'm happy to get rid of - I noticed after Keir
>> commented on the use of caps in the name that it's no longer used.
>> The second I think is enough code that it would unnecessarily
>> clutter the existing functions.  For this reason I'd rather leave it
>> in (with a lower-case name).
> 
> It's a matter of taste, but I'd prefer it if it was obvious when
> looking at the code that the hook is being called with a spinlock
> held. That's actually another thing - why must every hook be called
> with the spinlock held? if it's to protect the accelerator from going
> away, what's actually needed is a ref count (struct kref) on the
> accelerator.

I agree the lock should go. Removing the accelerator from under the feet of
an active vif just doesn't seem a sane action to support. And it should be
possible to support atomic-enough addition of an accelerator without need
for heavyweight locking. We don't want another lock-with-irqs-off on our
netfront data paths.

 -- Keir

  reply	other threads:[~2007-05-09 13:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-08  9:55 [PATCH 3/4] Support accelerated network plugin modules Kieran Mansley
2007-05-09 11:25 ` Muli Ben-Yehuda
2007-05-09 11:58   ` Kieran Mansley
2007-05-09 12:17     ` Muli Ben-Yehuda
2007-05-09 13:09       ` Keir Fraser [this message]
2007-05-09 13:25         ` Kieran Mansley

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=C2678689.E96F%keir@xensource.com \
    --to=keir@xensource.com \
    --cc=kmansley@solarflare.com \
    --cc=muli@il.ibm.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.