[SCSI] avoid useless free_list lock roundtrips
authorChristoph Hellwig <hch@infradead.org>
Thu, 20 Feb 2014 22:20:53 +0000 (14:20 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:24 +0000 (10:19 -0700)
commit44b93b59d544919aba1aea6fa95f1418f2aa870f
tree337da45d94fc70c43ae33a5f60cd65e8e063ed85
parentdf03c3f62837e20e936fe705aa480e8bee6bb3ca
[SCSI] 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