Messages in this thread Patch in this message | | | Date | Thu, 15 Nov 2001 16:08:29 +0100 (CET) | From | Igmar Palsenberg <> | Subject | [PATCH] request_module[scsi_hostadapter]: Root fs not mounted |
| |
Hi,
drivers/scsi/scsi.c : scsi_register_module() is called by drivers which need the midlevel SCSI layer. When no hostadapters are found, it calls request_module("scsi_hostadapter").
When scsi drivers are compiled in and not found, the request_module() fails because the root FS is not mounted (not the case when a ramdisk is loaded I guess), so request_module() logs a warning.
Applied fix fixes the warning by only calling request_module() when the root FS is mounted.
Regards,
Igmar
--
Igmar Palsenberg JDI Media Solutions
Boulevard Heuvelink 102 6828 KT Arnhem The Netherlands
mailto: i.palsenberg@jdimedia.nl PGP/GPG key : http://www.jdimedia.nl/formulier/pgp/igmar --- linux-2.4.14/drivers/scsi/scsi.c.orig Thu Nov 15 15:51:15 2001 +++ linux-2.4.14/drivers/scsi/scsi.c Thu Nov 15 15:51:41 2001 @@ -2347,7 +2347,7 @@ /* Load upper level device handler of some kind */ case MODULE_SCSI_DEV: #ifdef CONFIG_KMOD - if (scsi_hosts == NULL) + if (scsi_hosts == NULL && current->fs->root != NULL) request_module("scsi_hostadapter"); #endif return scsi_register_device_module((struct Scsi_Device_Template *) ptr);
| |