dm mpath: fix support for loading scsi_dh modules during table load
authorMike Snitzer <snitzer@redhat.com>
Thu, 29 Mar 2018 15:50:10 +0000 (11:50 -0400)
committerMike Snitzer <snitzer@redhat.com>
Thu, 29 Mar 2018 21:00:44 +0000 (17:00 -0400)
commite457edf0b21c873be827b7c2f6b8e1545485c415
tree7c4e9c4264630804c3a9addca82e6183bfa389f7
parent8c5c147339d2e201108169327b1f99aa6d57d2cd
dm mpath: fix support for loading scsi_dh modules during table load

The ability to have multipath dynamically attach a scsi_dh, that the user
specified in the multipath table, was broken by commit e8f74a0f00 ("dm
mpath: eliminate need to use scsi_device_from_queue").

Restore the ability to load, and attach, a particular scsi_dh module if
one is specified (as noticed by checking m->hw_handler_name).

Fixes: e8f74a0f00 ("dm mpath: eliminate need to use scsi_device_from_queue")
Reported-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c