dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/scsi/mpt2sas
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
..
mpi [SCSI] mpt2sas: MPI header version N is updated. 2010-07-27 12:02:13 -05:00
Kconfig [SCSI] mpt2sas: Copyright 2010. 2010-04-11 09:24:02 -05:00
Makefile
mpt2sas_base.c [SCSI] drivers/scsi: Adjust confusing if indentation 2010-09-05 14:18:45 -03:00
mpt2sas_base.h Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2010-08-04 15:31:02 -07:00
mpt2sas_config.c [SCSI] mpt2sas: driver fails to recover from injected PCIe bus errors 2010-07-27 12:04:03 -05:00
mpt2sas_ctl.c Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl 2010-10-22 10:52:56 -07:00
mpt2sas_ctl.h [SCSI] mpt2sas: Copyright 2010. 2010-04-11 09:24:02 -05:00
mpt2sas_debug.h [SCSI] mpt2sas: Copyright 2010. 2010-04-11 09:24:02 -05:00
mpt2sas_scsih.c SCSI host lock push-down 2010-11-16 13:33:23 -08:00
mpt2sas_transport.c [SCSI] mpt2sas: driver fails to recover from injected PCIe bus errors 2010-07-27 12:04:03 -05:00