]> git.openpandora.org Git - pandora-kernel.git/commitdiff
scsi_dh: add a common helper to get a scsi_device from a request_queue
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Aug 2015 12:17:00 +0000 (14:17 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 28 Aug 2015 20:14:57 +0000 (13:14 -0700)
And cleanup the various messy opencoded versions of this.  Note that this
moves the sdev_state checks outside the queue_lock coverage, but as
we don't hold the lock over the activation they are only advisory anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/scsi_dh.c

Simple merge