Commit d6a32b98 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by James Bottomley

scsi_dh: don't try to load a device handler during async probing

Request_module gets really unhappy when called from async probing, so
revert to not auto load device handler modules during the SCSI bus
scan.  While autoloading would be really useful we never did this
until 4.3-rc and it turns out that functionality doesn't actually
work.

Fixes: 566079 ("dm-mpath, scsi_dh: request scsi_dh modules in scsi_dh, not dm-mpath")
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reported-by: default avatarPaul Mackerras <paulus@ozlabs.org>
Tested-by: default avatarPaul Mackerras <paulus@ozlabs.org>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent 23695e41
...@@ -226,7 +226,7 @@ int scsi_dh_add_device(struct scsi_device *sdev) ...@@ -226,7 +226,7 @@ int scsi_dh_add_device(struct scsi_device *sdev)
drv = scsi_dh_find_driver(sdev); drv = scsi_dh_find_driver(sdev);
if (drv) if (drv)
devinfo = scsi_dh_lookup(drv); devinfo = __scsi_dh_lookup(drv);
if (devinfo) if (devinfo)
err = scsi_dh_handler_attach(sdev, devinfo); err = scsi_dh_handler_attach(sdev, devinfo);
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment