dm mpath: eliminate need to use scsi_device_from_queue
authorMike Snitzer <snitzer@redhat.com>
Mon, 12 Mar 2018 23:49:25 +0000 (19:49 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 13 Mar 2018 19:09:56 +0000 (15:09 -0400)
commite8f74a0f00113d74ac18d6de13096f9e2f95618a
treebc9f364fa06510e223b94d1459526f111d5bec07
parentc37366742baa2bb3225be507d283baef151c5f8a
dm mpath: eliminate need to use scsi_device_from_queue

Instead of scsi_device_from_queue(), use scsi_dh_attached_handler_name()
-- whose implementation uses scsi_device_from_queue() to avoid trying to
access SCSI-specific resources from non-SCSI devices.

Fixes buildbot reported issue when CONFIG_SCSI isn't set:
 ERROR: "scsi_device_from_queue" [drivers/md/dm-multipath.ko] undefined!

Fixes: 8d47e65948dd ("dm mpath: remove unnecessary NVMe branching in favor of scsi_dh checks")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c