Skip to content

Commit d6a32b9

Browse files
Christoph HellwigJames Bottomley
Christoph Hellwig
authored and
James Bottomley
committed
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: Christoph Hellwig <hch@lst.de> Reported-by: Paul Mackerras <paulus@ozlabs.org> Tested-by: Paul Mackerras <paulus@ozlabs.org> Signed-off-by: James Bottomley <JBottomley@Odin.com>
1 parent 23695e4 commit d6a32b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/scsi_dh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ int scsi_dh_add_device(struct scsi_device *sdev)
226226

227227
drv = scsi_dh_find_driver(sdev);
228228
if (drv)
229-
devinfo = scsi_dh_lookup(drv);
229+
devinfo = __scsi_dh_lookup(drv);
230230
if (devinfo)
231231
err = scsi_dh_handler_attach(sdev, devinfo);
232232
return err;

0 commit comments

Comments
 (0)