]> 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)
commitf2731d25fea93ab3ced03904d552ca4dac76b125
tree7c4e9c4264630804c3a9addca82e6183bfa389f7
parentcc25e07d236bbacdb7ab9b1b754dc1a4fc939676
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 69eb7ed31f ("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: 69eb7ed31f ("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