[PATCH 07/10] scsi_dh: add a common helper to get a scsi_device from a request_queue

2015-08-27 Thread Hannes Reinecke
From: Christoph Hellwig 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.

[PATCH 07/10] scsi_dh: add a common helper to get a scsi_device from a request_queue

2015-07-08 Thread Hannes Reinecke
From: Christoph Hellwig 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.