linux/drivers/scsi/sym53c8xx_2
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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sym53c8xx.h [SCSI] sym53c8xx: Remove tag_ctrl module parameter 2007-10-23 15:11:57 -04:00
sym_defs.h [SCSI] Version 2.2.3 2006-04-13 10:13:26 -05:00
sym_fw1.h Fix misspellings of "agressive". 2007-02-17 19:20:16 +01:00
sym_fw2.h Spelling fix: explicitly 2007-10-19 23:22:55 +02:00
sym_fw.c [SCSI] sym53c8xx: Remove pci_dev pointer from sym_shcb 2007-10-23 15:26:34 -04:00
sym_fw.h [SCSI] sym53c8xx: Remove pci_dev pointer from sym_shcb 2007-10-23 15:26:34 -04:00
sym_glue.c SCSI host lock push-down 2010-11-16 13:33:23 -08:00
sym_glue.h [SCSI] replace __inline with inline 2009-04-03 10:23:16 -05:00
sym_hipd.c [SCSI] sd, sym53c8xx: Remove warnings after vsprintf %pV introducation. 2010-09-02 17:23:20 -03:00
sym_hipd.h tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
sym_malloc.c [SCSI] replace __inline with inline 2009-04-03 10:23:16 -05:00
sym_misc.h [SCSI] replace __inline with inline 2009-04-03 10:23:16 -05:00
sym_nvram.c [SCSI] sym53c8xx: Remove ->device_id 2007-10-23 15:11:10 -04:00
sym_nvram.h [SCSI] sym2: Allow NVRAM settings to limit speed and width 2005-12-13 18:11:45 -07:00