mirror of https://gitee.com/openkylin/linux.git
f281233d3e
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> |
||
---|---|---|
.. | ||
aicasm | ||
.gitignore | ||
Kconfig.aic7xxx | ||
Kconfig.aic79xx | ||
Makefile | ||
aic7xxx.h | ||
aic7xxx.reg | ||
aic7xxx.seq | ||
aic7xxx_93cx6.c | ||
aic7xxx_93cx6.h | ||
aic7xxx_core.c | ||
aic7xxx_inline.h | ||
aic7xxx_osm.c | ||
aic7xxx_osm.h | ||
aic7xxx_osm_pci.c | ||
aic7xxx_pci.c | ||
aic7xxx_pci.h | ||
aic7xxx_proc.c | ||
aic7xxx_reg.h_shipped | ||
aic7xxx_reg_print.c_shipped | ||
aic7xxx_seq.h_shipped | ||
aic79xx.h | ||
aic79xx.reg | ||
aic79xx.seq | ||
aic79xx_core.c | ||
aic79xx_inline.h | ||
aic79xx_osm.c | ||
aic79xx_osm.h | ||
aic79xx_osm_pci.c | ||
aic79xx_pci.c | ||
aic79xx_pci.h | ||
aic79xx_proc.c | ||
aic79xx_reg.h_shipped | ||
aic79xx_reg_print.c_shipped | ||
aic79xx_seq.h_shipped | ||
aic7770.c | ||
aic7770_osm.c | ||
aiclib.c | ||
aiclib.h | ||
cam.h | ||
queue.h | ||
scsi_iu.h | ||
scsi_message.h |