]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
scsi: only maintain target_blocked if the driver has a target queue limit
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Mar 2014 09:35:00 +0000 (10:35 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:16:05 +0000 (17:16 -0400)
commit2ccbb00808465338b57c39f38c0b1e7ce69e2bb1
treee7a6e51c60b86d546a114441cc4e4dc6c46252d1
parentcd9070c9c512ff7995f9019392e0ae548df3a088
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>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Webb Scales <webbnh@hp.com>
Acked-by: Jens Axboe <axboe@kernel.dk>
Tested-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Robert Elliott <elliott@hp.com>
drivers/scsi/scsi_lib.c