linux-sg2042/drivers/scsi/aic7xxx
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
..
aicasm [SCSI] aic7xxx: introduce "dont_generate_debug_code" keyword in aicasm parser 2008-10-23 11:42:12 -05:00
.gitignore
Kconfig.aic7xxx
Kconfig.aic79xx
Makefile scsi: fix makefile for aic7(3*x) 2008-02-09 10:43:58 +01:00
aic7xxx.h [SCSI] aic7xxx: add const 2008-04-27 12:20:00 -05:00
aic7xxx.reg [SCSI] aic7xxx: update .reg files 2008-10-23 11:42:12 -05:00
aic7xxx.seq tree-wide: fix typos "selct" + "slect" -> "select" 2009-11-09 09:40:56 +01:00
aic7xxx_93cx6.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic7xxx_93cx6.h
aic7xxx_core.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic7xxx_inline.h [SCSI] replace __inline with inline 2009-04-03 10:23:16 -05:00
aic7xxx_osm.c SCSI host lock push-down 2010-11-16 13:33:23 -08:00
aic7xxx_osm.h [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic7xxx_osm_pci.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic7xxx_pci.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic7xxx_pci.h
aic7xxx_proc.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic7xxx_reg.h_shipped [SCSI] aic7xxx: update *_shipped files 2008-10-23 11:42:12 -05:00
aic7xxx_reg_print.c_shipped [SCSI] aic7xxx: update *_shipped files 2008-10-23 11:42:12 -05:00
aic7xxx_seq.h_shipped [SCSI] aic7xxx: Update _shipped files 2008-04-27 12:20:00 -05:00
aic79xx.h [SCSI] aic7xxx: add const 2008-04-27 12:20:00 -05:00
aic79xx.reg [SCSI] aic7xxx: update .reg files 2008-10-23 11:42:12 -05:00
aic79xx.seq tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
aic79xx_core.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic79xx_inline.h [SCSI] replace __inline with inline 2009-04-03 10:23:16 -05:00
aic79xx_osm.c SCSI host lock push-down 2010-11-16 13:33:23 -08:00
aic79xx_osm.h [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic79xx_osm_pci.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic79xx_pci.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic79xx_pci.h
aic79xx_proc.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic79xx_reg.h_shipped [SCSI] aic7xxx: update *_shipped files 2008-10-23 11:42:12 -05:00
aic79xx_reg_print.c_shipped [SCSI] aic7xxx: update *_shipped files 2008-10-23 11:42:12 -05:00
aic79xx_seq.h_shipped [SCSI] aic7xxx: Update _shipped files 2008-04-27 12:20:00 -05:00
aic7770.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aic7770_osm.c [SCSI] aic7xxx: Remove OS utility wrappers 2010-07-28 09:05:27 -05:00
aiclib.c
aiclib.h [SCSI] replace __inline with inline 2009-04-03 10:23:16 -05:00
cam.h Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
queue.h
scsi_iu.h
scsi_message.h