From: Christoph Hellwig Date: Thu, 8 Oct 2015 08:25:32 +0000 (+0100) Subject: scsi_dh: don't try to load a device handler during async probing X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6a32b98099fb6b257e9b4f7b3febb5aae6f7408;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reported-by: Paul Mackerras Tested-by: Paul Mackerras Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/scsi_dh.c b/drivers/scsi/scsi_dh.c index cb78388de3fc..e7649ed3f667 100644 --- a/drivers/scsi/scsi_dh.c +++ b/drivers/scsi/scsi_dh.c @@ -226,7 +226,7 @@ int scsi_dh_add_device(struct scsi_device *sdev) drv = scsi_dh_find_driver(sdev); if (drv) - devinfo = scsi_dh_lookup(drv); + devinfo = __scsi_dh_lookup(drv); if (devinfo) err = scsi_dh_handler_attach(sdev, devinfo); return err;