summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-08-27 14:17:00 +0200
committerJames Bottomley <JBottomley@Odin.com>2015-08-28 13:14:57 -0700
commite959ed9a44c5239863ca6db42cb37130bee3c7a3 (patch)
tree248382f514a1eb44b910886488ae94e056890957 /drivers/mmc
parentee14c674e8fc57251223054fb52dc0ecfe711028 (diff)
downloadtalos-op-linux-e959ed9a44c5239863ca6db42cb37130bee3c7a3.tar.gz
talos-op-linux-e959ed9a44c5239863ca6db42cb37130bee3c7a3.zip
scsi_dh: add a common helper to get a scsi_device from a request_queue
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>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud