lkml.org 
[lkml]   [2001]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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);
\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.036 / U:2.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site