1
linux/drivers/staging/hv
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
..
blkvsc_drv.c Merge 'staging-next' to Linus's tree 2010-10-28 09:44:56 -07:00
blkvsc.c staging: hv: Remove camel cases of vmbus packet buffer structures 2010-09-20 16:22:40 -07:00
channel_mgmt.c Staging: hv: make alloc_channel static 2010-10-20 15:51:57 -07:00
channel_mgmt.h Staging: hv: make alloc_channel static 2010-10-20 15:51:57 -07:00
channel.c Staging: hv: channel: export vmbus_open to modules 2010-10-21 09:58:21 -07:00
channel.h staging: hv: Rename camel cased functions in channel.c to lowercase 2010-10-07 14:43:02 -07:00
connection.c staging: hv: Rename camel cased functions in channel.c to lowercase 2010-10-07 14:43:02 -07:00
hv_api.h
hv_timesource.c
hv_utils.c drivers/staging: delete double assignment 2010-11-09 14:05:22 -08:00
hv.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
hv.h
Kconfig staging: hv: Fix Kconfig dependency of hv_blkvsc 2010-07-26 15:38:13 -07:00
logging.h Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
Makefile Staging: hv: remove struct vmbus_channel_interface 2010-10-21 10:03:44 -07:00
netvsc_api.h
netvsc_drv.c Merge 'staging-next' to Linus's tree 2010-10-28 09:44:56 -07:00
netvsc.c Staging: hv: netvsc: call vmbus_open directly 2010-10-21 09:58:42 -07:00
netvsc.h
osd.c
osd.h
ring_buffer.c staging: hv: Fixed the value of the 64bit-hole inside ring buffer 2010-09-03 17:37:15 -07:00
ring_buffer.h Staging: hv: remove RING_BUFFER typedef 2010-07-27 11:47:08 -07:00
rndis_filter.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
rndis_filter.h
rndis.h
storvsc_api.h staging: hv: Increased storvsc ringbuffer and max_io_requests 2010-09-03 17:37:15 -07:00
storvsc_drv.c SCSI host lock push-down 2010-11-16 13:33:23 -08:00
storvsc.c Staging: hv: storvsc: call vmbus_open directly 2010-10-21 09:59:06 -07:00
TODO staging: hv: Convert vmbus driver interface function pointer table to constant 2010-09-14 16:27:12 -07:00
utils.h
version_info.h
vmbus_api.h Staging: hv: remove struct vmbus_channel_interface 2010-10-21 10:03:44 -07:00
vmbus_channel_interface.h
vmbus_drv.c Staging: hv: remove struct vmbus_channel_interface 2010-10-21 10:03:44 -07:00
vmbus_packet_format.h
vmbus_private.h Staging: hv: rename context to channel in struct hv_device 2010-10-21 09:05:27 -07:00
vmbus.c Staging: hv: rename context to channel in struct hv_device 2010-10-21 09:05:27 -07:00
vmbus.h Staging: hv: remove struct vmbus_channel_interface 2010-10-21 10:03:44 -07:00
vstorage.h