dm-mpath, scsi_dh: request scsi_dh modules in scsi_dh, not dm-mpath
[firefly-linux-kernel-4.4.55.git] / drivers / md / dm-mpath.c
index a9f58fdb5d69d2461f155b1b316c3cb0624d788c..5a67671a3973b576a9bdcc8dabc576448336b9ba 100644 (file)
@@ -725,12 +725,6 @@ static int parse_hw_handler(struct dm_arg_set *as, struct multipath *m)
                return 0;
 
        m->hw_handler_name = kstrdup(dm_shift_arg(as), GFP_KERNEL);
-       if (!try_then_request_module(scsi_dh_handler_exist(m->hw_handler_name),
-                                    "scsi_dh_%s", m->hw_handler_name)) {
-               ti->error = "unknown hardware handler type";
-               ret = -EINVAL;
-               goto fail;
-       }
 
        if (hw_argc > 1) {
                char *p;