WSL2-Linux-Kernel/arch/ia64/hp/sim
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
..
boot [IA64] rename _bss to __bss_start 2007-12-07 16:11:49 -08:00
Kconfig IA64: HP_SIMETH needs to depend upon NET 2008-12-10 15:24:50 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hpsim.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hpsim_console.c [IA64] Cleanup HPSIM code (was: Re: Enable early console for Ski simulator) 2007-09-01 02:52:25 -07:00
hpsim_irq.c [IA64] remove obsolete hw_interrupt_type 2009-06-15 14:35:10 -07:00
hpsim_machvec.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hpsim_setup.c [IA64] Enable early console for Ski simulator 2007-09-01 02:50:39 -07:00
hpsim_ssc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
simeth.c net: use NETDEV_TX_OK instead of 0 in ndo_start_xmit() functions 2009-07-05 19:16:04 -07:00
simscsi.c SCSI host lock push-down 2010-11-16 13:33:23 -08:00
simserial.c tty: icount changeover for other main devices 2010-10-22 10:20:05 -07:00