Re: Patch added to scsi-rc-fixes-2.6: [SCSI] host lock push-down

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
     Signed-off-by: James Bottomley<James.Bottomley@xxxxxxx>

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.

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux