1
linux/drivers/scsi/lpfc
Jeff Garzik f281233d3e 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.

Additionally, add one parameter to queuecommand,
	struct Scsi_Host *
and remove one parameter from queuecommand,
	void (*done)(struct scsi_cmnd *)

Scsi_Host* is a convenient pointer that most host drivers need anyway,
and 'done' is redundant to struct scsi_cmnd->scsi_done.

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>
Acked-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-16 13:33:23 -08:00
..
lpfc_attr.c [SCSI] lpfc 8.3.18: Fix critical errors 2010-10-26 10:42:27 -05:00
lpfc_bsg.c [SCSI] lpfc 8.3.18: Fix critical errors 2010-10-26 10:42:27 -05:00
lpfc_bsg.h
lpfc_compat.h [SCSI] lpfc 8.3.16: SLI Additions, updates, and code cleanup 2010-08-06 12:09:24 -05:00
lpfc_crtn.h [SCSI] lpfc 8.3.18: Adapter Shutdown and Unregistration cleanup 2010-10-26 10:42:27 -05:00
lpfc_ct.c
lpfc_debugfs.c
lpfc_debugfs.h
lpfc_disc.h
lpfc_els.c [SCSI] lpfc 8.3.18: Add new WQE support 2010-10-26 10:42:29 -05:00
lpfc_hbadisc.c [SCSI] lpfc 8.3.18: Adapter Shutdown and Unregistration cleanup 2010-10-26 10:42:27 -05:00
lpfc_hw4.h [SCSI] lpfc 8.3.18: Add new WQE support 2010-10-26 10:42:29 -05:00
lpfc_hw.h [SCSI] lpfc 8.3.18: Add support of received ELS commands 2010-10-25 16:36:18 -05:00
lpfc_init.c [SCSI] lpfc 8.3.18: Adapter Shutdown and Unregistration cleanup 2010-10-26 10:42:27 -05:00
lpfc_logmsg.h
lpfc_mbox.c [SCSI] lpfc 8.3.18: Adapter Shutdown and Unregistration cleanup 2010-10-26 10:42:27 -05:00
lpfc_mem.c
lpfc_nl.h
lpfc_nportdisc.c
lpfc_scsi.c SCSI host lock push-down 2010-11-16 13:33:23 -08:00
lpfc_scsi.h
lpfc_sli4.h [SCSI] lpfc 8.3.18: Adapter Shutdown and Unregistration cleanup 2010-10-26 10:42:27 -05:00
lpfc_sli.c [SCSI] lpfc 8.3.18: Add new WQE support 2010-10-26 10:42:29 -05:00
lpfc_sli.h
lpfc_version.h [SCSI] lpfc 8.3.18: Update lpfc driver version to 8.3.18 2010-10-26 10:42:29 -05:00
lpfc_vport.c [SCSI] lpfc 8.3.17: Code Cleanup and Locking fixes 2010-10-07 17:26:19 -05:00
lpfc_vport.h
lpfc.h [SCSI] lpfc 8.3.18: Add logic to detect last devloss timeout 2010-10-26 10:40:49 -05:00
Makefile