scsi: only maintain target_blocked if the driver has a target queue limit
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jun 2014 16:51:57 +0000 (18:51 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:28 +0000 (12:12 -0600)
commit2b0eff13a90f3500656fcfd1c8a358d30acc1efe
tree1fce3acfa94f650ca74f157777f6d21446b86214
parenta0581bc9459f1b68dd8ae77daee0f358e8a6e042
scsi: only maintain target_blocked if the driver has a target queue limit

This saves us an atomic operation for each I/O submission and completion
for the usual case where the driver doesn't set a per-target can_queue
value.  Only a few iscsi hardware offload drivers set the per-target
can_queue value at the moment.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/scsi_lib.c