kernel-fxtec-pro1x/include/scsi
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
..
fc
fc_encode.h
fc_frame.h
iscsi_if.h
iscsi_proto.h
Kbuild
libfc.h SCSI host lock push-down 2010-11-16 13:33:23 -08:00
libfcoe.h
libiscsi.h SCSI host lock push-down 2010-11-16 13:33:23 -08:00
libiscsi_tcp.h
libsas.h SCSI host lock push-down 2010-11-16 13:33:23 -08:00
libsrp.h
osd_attributes.h
osd_initiator.h [SCSI] libosd: write/read_sg_kern API 2010-10-26 10:42:35 -05:00
osd_protocol.h [SCSI] libosd: Support for scatter gather write/read commands 2010-10-26 10:42:34 -05:00
osd_sec.h
osd_sense.h
osd_types.h [SCSI] libosd: Support for scatter gather write/read commands 2010-10-26 10:42:34 -05:00
sas.h
sas_ata.h
scsi.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 2010-10-22 20:30:48 -07:00
scsi_bsg_fc.h
scsi_cmnd.h
scsi_dbg.h
scsi_device.h scsi/sd: add a no_read_capacity_16 scsi_device flag 2010-10-22 10:22:05 -07:00
scsi_devinfo.h
scsi_dh.h
scsi_driver.h
scsi_eh.h
scsi_host.h SCSI host lock push-down 2010-11-16 13:33:23 -08:00
scsi_ioctl.h
scsi_netlink.h scsi: use __uX types for headers exported to user space 2010-08-11 08:59:01 -07:00
scsi_netlink_fc.h
scsi_scan.h
scsi_tcq.h block: remove spurious uses of REQ_HARDBARRIER 2010-09-10 12:35:36 +02:00
scsi_tgt.h
scsi_tgt_if.h
scsi_transport.h
scsi_transport_fc.h [SCSI] fc class: add fc host dev loss sysfs file 2010-10-07 17:09:44 -05:00
scsi_transport_iscsi.h
scsi_transport_sas.h
scsi_transport_spi.h
scsi_transport_srp.h
scsicam.h
sg.h
srp.h IB/srp: Implement SRP_CRED_REQ and SRP_AER_REQ 2010-10-22 22:19:10 -07:00