avoid useless free_list lock roundtrips
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jun 2014 22:45:56 +0000 (16:45 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:25 +0000 (12:12 -0600)
commiteca7d8545507e54bd3266f86421c34fa0e544cc0
tree6d76d9c206bec3fe3391d604763e995c600762b1
parent464745769496b0514e3f4a767744a9b2f639e492
avoid useless free_list lock roundtrips

Avoid hitting the host-wide free_list lock unless we need to put a command
back onto the freelist.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi.c