WSL2-Linux-Kernel/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 staging: hv: Fix Kconfig dependency of hv_blkvsc 2010-07-26 15:38:13 -07:00
Makefile Staging: hv: remove struct vmbus_channel_interface 2010-10-21 10:03:44 -07:00
TODO staging: hv: Convert vmbus driver interface function pointer table to constant 2010-09-14 16:27:12 -07:00
blkvsc.c staging: hv: Remove camel cases of vmbus packet buffer structures 2010-09-20 16:22:40 -07:00
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 Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
hv.h Staging: hv: rename Hv.h to hv.h 2010-05-11 11:36:16 -07:00
hv_api.h Staging: fix assorted typos all over the place 2009-12-11 12:23:20 -08:00
hv_timesource.c Staging: hyperv: add clocksource driver 2010-07-08 14:15:11 -07:00
hv_utils.c drivers/staging: delete double assignment 2010-11-09 14:05:22 -08:00
logging.h Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
netvsc.c Staging: hv: netvsc: call vmbus_open directly 2010-10-21 09:58:42 -07:00
netvsc.h Staging: hv: rename VmbusPacketFormat.h to vmbus_packet_format.h 2010-05-11 11:36:18 -07:00
netvsc_api.h Staging: hv: rename VmbusApi.h to vmbus_api.h 2010-05-11 11:36:17 -07:00
netvsc_drv.c Merge 'staging-next' to Linus's tree 2010-10-28 09:44:56 -07:00
osd.c staging: hv: Corrected all header comment formats kernel-doc format 2010-05-11 11:35:32 -07:00
osd.h Staging: hv: fix oops in vmbus - missing #include 2009-10-30 14:47:43 -07:00
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.h Staging: hv: trivial whitespace fixes found by checkpatch.pl 2010-05-11 11:35:36 -07:00
rndis_filter.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
rndis_filter.h Staging: hv: rename RndisFilter.c and .h to rndis_filter.c and .h 2010-05-11 11:36:17 -07:00
storvsc.c Staging: hv: storvsc: call vmbus_open directly 2010-10-21 09:59:06 -07:00
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
utils.h staging: hv: Added heartbeat functionality to hv_utils 2010-05-17 16:32:30 -07:00
version_info.h staging: hv: Added heartbeat functionality to hv_utils 2010-05-17 16:32:30 -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
vmbus_api.h Staging: hv: remove struct vmbus_channel_interface 2010-10-21 10:03:44 -07:00
vmbus_channel_interface.h Staging: hv: rename VmbusChannelInterface.h to vmbus_channel_interface.h 2010-05-11 11:36:17 -07:00
vmbus_drv.c Staging: hv: remove struct vmbus_channel_interface 2010-10-21 10:03:44 -07:00
vmbus_packet_format.h Staging: hv: rename VmbusPacketFormat.h to vmbus_packet_format.h 2010-05-11 11:36:18 -07:00
vmbus_private.h Staging: hv: rename context to channel in struct hv_device 2010-10-21 09:05:27 -07:00
vstorage.h Staging: hv: fix spaces coding style issue in vstorage.h 2010-05-11 11:35:38 -07:00