scsi: push host_lock down into scsi_{host,target}_queue_ready
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Jan 2014 13:36:32 +0000 (14:36 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 11:38:53 +0000 (07:38 -0400)
commitcf68d334dd3a323624f6399dc807d34d8b816391
tree4b93e695a89d2428ccfbc83e8674e7bd24d18722
parent3b5382c459b709845f43361225a2e3284e50752e
scsi: push host_lock down into scsi_{host,target}_queue_ready

Prepare for not taking a host-wide lock in the dispatch path by pushing
the lock down into the places that actually need it.  Note that this
patch is just a preparation step, as it will actually increase lock
roundtrips and thus decrease performance on its own.

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>
drivers/scsi/scsi_lib.c