From: Christoph Hellwig Date: Thu, 27 Aug 2015 12:17:00 +0000 (+0200) Subject: scsi_dh: add a common helper to get a scsi_device from a request_queue X-Git-Tag: omap-for-v4.3/fixes-rc1~25^2~20 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e959ed9a44c5239863ca6db42cb37130bee3c7a3;p=pandora-kernel.git 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 Reviewed-by: Martin K. Petersen Reviewed-by: Hannes Reinecke Signed-off-by: James Bottomley --- Reading git-diff-tree failed