diff options
author | Christoph Hellwig <hch@lst.de> | 2014-01-22 14:49:41 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-07-25 13:39:00 +0200 |
commit | 7ae65c0f9646c29432b69580b80e08632e6cd813 (patch) | |
tree | 9b4cf362095370eeb5c42d21dc33746d0ba088bd /drivers/scsi/scsi_error.c | |
parent | scsi: push host_lock down into scsi_{host,target}_queue_ready (diff) | |
download | linux-7ae65c0f9646c29432b69580b80e08632e6cd813.tar.xz linux-7ae65c0f9646c29432b69580b80e08632e6cd813.zip |
scsi: convert target_busy to an atomic_t
Avoid taking the host-wide host_lock to check the per-target queue limit.
Instead we do an atomic_inc_return early on to grab our slot in the queue,
and if necessary decrement it after finishing all checks.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
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>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
0 files changed, 0 insertions, 0 deletions