OSDN Git Service

scsi: add use_cmd_list flag
authorKashyap.Desai@avagotech.com <Kashyap.Desai@avagotech.com>
Wed, 20 Aug 2014 13:54:33 +0000 (19:24 +0530)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Sep 2014 23:01:58 +0000 (16:01 -0700)
commit64bdcbc449105377dd60c8da97cfc1663b39562c
treebe79dd9fe4dfd101dc68ed5ee6d0d53ce2efad09
parent2eefd57b97609949ae40952da2dea338e7d9a125
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>
drivers/scsi/aacraid/linit.c
drivers/scsi/dpt_i2o.c
drivers/scsi/scsi_lib.c
include/scsi/scsi_host.h