• Mike Snitzer's avatar
    dm mpath: eliminate need to use scsi_device_from_queue · e8f74a0f
    Mike Snitzer authored
    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: 8d47e659 ("dm mpath: remove unnecessary NVMe branching in favor of scsi_dh checks")
    Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    e8f74a0f
dm-mpath.c 50.4 KB