]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69eb7ed31f2f8714dfb72ba8ec16f6399e911a41
treebc9f364fa06510e223b94d1459526f111d5bec07
parent88363fcefef4644b90dfd8b18d1f7951da93a3c4
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: b62428a83bf1 ("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