linux/drivers/s390/scsi
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
..
Makefile [SCSI] zfcp: Move code for managing zfcp_unit devices to new file 2010-09-16 22:54:15 -04:00
zfcp_aux.c [SCSI] zfcp: Move code for managing zfcp_unit devices to new file 2010-09-16 22:54:15 -04:00
zfcp_ccw.c [SCSI] zfcp: Replace status modifier functions. 2010-09-16 22:54:23 -04:00
zfcp_cfdc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2010-10-22 17:34:15 -07:00
zfcp_dbf.c [SCSI] zfcp: Remove scsi_cmnd->serial_number from debug traces 2010-10-07 17:25:26 -05:00
zfcp_dbf.h [SCSI] zfcp: Remove scsi_cmnd->serial_number from debug traces 2010-10-07 17:25:26 -05:00
zfcp_def.h [SCSI] zfcp: Replace status modifier functions. 2010-09-16 22:54:23 -04:00
zfcp_erp.c [SCSI] zfcp: Replace status modifier functions. 2010-09-16 22:54:23 -04:00
zfcp_ext.h [SCSI] zfcp: Replace status modifier functions. 2010-09-16 22:54:23 -04:00
zfcp_fc.c [SCSI] zfcp: Replace status modifier functions. 2010-09-16 22:54:23 -04:00
zfcp_fc.h [SCSI] zfcp: Use correct length for FCP_RSP_INFO 2010-10-25 09:42:38 -05:00
zfcp_fsf.c [SCSI] zfcp: Fix adapter activation on link down 2010-10-25 09:42:35 -05:00
zfcp_fsf.h [SCSI] zfcp: Introduce experimental support for DIF/DIX 2010-07-28 09:48:56 -05:00
zfcp_qdio.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-10-23 11:47:02 -07:00
zfcp_qdio.h [SCSI] zfcp: Introduce experimental support for DIF/DIX 2010-07-28 09:48:56 -05:00
zfcp_reqlist.h [SCSI] zfcp: Move FSF request tracking code to new file 2010-02-17 17:46:19 -06:00
zfcp_scsi.c SCSI host lock push-down 2010-11-16 13:33:23 -08:00
zfcp_sysfs.c [SCSI] zfcp: Replace status modifier functions. 2010-09-16 22:54:23 -04:00
zfcp_unit.c [SCSI] zfcp: Call get_device on port before calling put_device 2010-10-25 09:42:37 -05:00