aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorKashyap.Desai@avagotech.com <Kashyap.Desai@avagotech.com>2014-08-20 19:24:33 +0530
committerChristoph Hellwig <hch@lst.de>2014-09-15 16:01:58 -0700
commit64bdcbc449105377dd60c8da97cfc1663b39562c (patch)
treebe79dd9fe4dfd101dc68ed5ee6d0d53ce2efad09 /include/scsi
parentsd: Avoid sending medium write commands if device is write protected (diff)
downloadlinux-dev-64bdcbc449105377dd60c8da97cfc1663b39562c.tar.xz
linux-dev-64bdcbc449105377dd60c8da97cfc1663b39562c.zip
scsi: add use_cmd_list flag
Add a use_cmd_list flag in struct Scsi_Host to request keeping track of all outstanding commands per device. Default behaviour is not to keep track of cmd_list per sdev, as this may introduce lock contention. (overhead is more on multi-node NUMA.), and only enable it on the two drivers that need it. Signed-off-by: Kashyap Desai <kashyap.desai@avagotech.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index ba2034779961..cafb260ef2d3 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -680,6 +680,7 @@ struct Scsi_Host {
unsigned no_write_same:1;
unsigned use_blk_mq:1;
+ unsigned use_cmd_list:1;
/*
* Optional work queue to be utilized by the transport