]> 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)
commited7922cd67b708a05da8014e0e9081b9136e5fe9
treebc9f364fa06510e223b94d1459526f111d5bec07
parent90465cb947ce6c194caf85b1b14bd3ad0ecb0a14
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: 4a9770fb3f7f ("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