linux/drivers/scsi/bfa
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
..
bfa_cb_ioim.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_core.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_cs.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_defs_fcs.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_defs_svc.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_defs.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_drv.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_fc.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_fcbuild.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_fcbuild.h [SCSI] bfa: cleanup driver 2010-09-16 22:54:24 -04:00
bfa_fcpim.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_fcpim.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_fcs_fcpim.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_fcs_lport.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_fcs_rport.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_fcs.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_fcs.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_hw_cb.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_hw_ct.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_ioc_cb.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_ioc_ct.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_ioc.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_ioc.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_modules.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_os_inc.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa_plog.h [SCSI] bfa: cleanup driver 2010-09-16 22:54:24 -04:00
bfa_port.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_port.h [SCSI] bfa: cleanup driver 2010-09-16 22:54:24 -04:00
bfa_svc.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfa_svc.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfa.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfad_attr.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfad_debugfs.c [SCSI] bfa: remove os wrapper functions and macros 2010-10-25 16:18:20 -05:00
bfad_drv.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfad_im.c SCSI host lock push-down 2010-11-16 13:33:23 -08:00
bfad_im.h [SCSI] bfa: cleanup driver 2010-09-16 22:54:24 -04:00
bfad.c [SCSI] bfa: fix comments for c files 2010-10-25 16:28:09 -05:00
bfi_cbreg.h [SCSI] bfa: cleanup driver 2010-09-16 22:54:24 -04:00
bfi_ctreg.h [SCSI] bfa: cleanup driver 2010-09-16 22:54:24 -04:00
bfi_ms.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
bfi.h [SCSI] bfa: fix comments for header files 2010-10-25 16:26:57 -05:00
Makefile [SCSI] bfa: cleanup driver 2010-09-16 22:54:24 -04:00