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
..
Kconfig
Makefile Staging: hv: remove struct vmbus_channel_interface 2010-10-21 10:03:44 -07:00
TODO
blkvsc.c
blkvsc_drv.c Merge 'staging-next' to Linus's tree 2010-10-28 09:44:56 -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
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
connection.c staging: hv: Rename camel cased functions in channel.c to lowercase 2010-10-07 14:43:02 -07:00
hv.c
hv.h
hv_api.h
hv_timesource.c
hv_utils.c drivers/staging: delete double assignment 2010-11-09 14:05:22 -08:00
logging.h
netvsc.c Staging: hv: netvsc: call vmbus_open directly 2010-10-21 09:58:42 -07:00
netvsc.h
netvsc_api.h
netvsc_drv.c Merge 'staging-next' to Linus's tree 2010-10-28 09:44:56 -07:00
osd.c
osd.h
ring_buffer.c
ring_buffer.h
rndis.h
rndis_filter.c
rndis_filter.h
storvsc.c Staging: hv: storvsc: call vmbus_open directly 2010-10-21 09:59:06 -07:00
storvsc_api.h
storvsc_drv.c SCSI host lock push-down 2010-11-16 13:33:23 -08:00
utils.h
version_info.h
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
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
vstorage.h