From: Igmar Palsenberg <i.palsenberg@jdimedia.nl>
To: <linux-kernel@vger.kernel.org>
Subject: [PATCH] request_module[scsi_hostadapter]: Root fs not mounted
Date: Thu, 15 Nov 2001 16:08:29 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.33.0111151603540.22669-200000@jdi.jdimedia.nl> (raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 689 bytes --]
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
[-- Attachment #2: Type: TEXT/PLAIN, Size: 467 bytes --]
--- 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);
reply other threads:[~2001-11-15 15:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.33.0111151603540.22669-200000@jdi.jdimedia.nl \
--to=i.palsenberg@jdimedia.nl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).