]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite865dd3d29f9c2b70358228a301fb06329bdc1a1
tree7c4e9c4264630804c3a9addca82e6183bfa389f7
parent59972f2e0f4a7b605a3eb0bd249843e528bec43f
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 ed7922cd67 ("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: ed7922cd67 ("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