From: Jeff Garzik <jeff@garzik.org>
To: James Bottomley <jejb@kernel.org>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
James Bottomley <James.Bottomley@suse.de>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: Patch added to scsi-rc-fixes-2.6: [SCSI] host lock push-down
Date: Wed, 10 Nov 2010 18:28:01 -0500 [thread overview]
Message-ID: <4CDB2A81.5030100@garzik.org> (raw)
In-Reply-To: <201011102240.oAAMe86a001486@hera.kernel.org>
On 11/10/2010 05:40 PM, James Bottomley wrote:
> Your commit:
>
> [SCSI] host lock push-down
>
> Move the mid-layer's ->queuecommand() invocation from being locked
> with the host lock to being unlocked to facilitate speeding up the
> critical path for drivers who don't need this lock taken anyway.
>
> The patch below presents a simple SCSI host lock push-down as an
> equivalent transformation. No locking or other behavior should change
> with this patch. All existing bugs and locking orders are preserved.
>
> Minimal code disturbance was attempted with this change. Most drivers
> needed only two one-line modifications for their host lock push-down.
>
> Signed-off-by: Jeff Garzik<jgarzik@redhat.com>
> Signed-off-by: James Bottomley<James.Bottomley@suse.de>
>
> has been added to the upstream SCSI tree
> You can find it here:
No comments on renaming ->queuecommand to something else?
The consequences are rather dire if this goes unnoticed, yes?
Jeff
In http://marc.info/?l=linux-ide&m=128891665713984&w=2 I wrote:
> An alternate arrangement, not presented by this patch, might
> be preferred: in order to make it clear that queuecommand
> locking has changed, one could s/queuecommand/queuecommand_nl/ in
> Scsi_Host_Template, in order to guarantee that drivers are either
> (a) upgraded or (b) broken at compile time. Compile-time detection of
> new locking may be desirable, and I'll volunteer to change my patch to
> do that, if community members prefer that route instead of below.
next parent reply other threads:[~2010-11-10 23:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201011102240.oAAMe86a001486@hera.kernel.org>
2010-11-10 23:28 ` Jeff Garzik [this message]
2010-11-10 23:45 ` Patch added to scsi-rc-fixes-2.6: [SCSI] host lock push-down James Bottomley
2010-11-10 23:52 ` Jeff Garzik
2010-11-11 8:58 ` Nicholas A. Bellinger
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=4CDB2A81.5030100@garzik.org \
--to=jeff@garzik.org \
--cc=James.Bottomley@suse.de \
--cc=jejb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/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