linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.5.9-dj1 sd_init() fails at boot
@ 2002-04-24  1:56 Douglas Gilbert
  0 siblings, 0 replies; only message in thread
From: Douglas Gilbert @ 2002-04-24  1:56 UTC (permalink / raw)
  To: linux-scsi; +Cc: linux-kernel, Dave Jones

[-- Attachment #1: Type: text/plain, Size: 819 bytes --]

With both lk 2.5.8-dj1 and lk 2.5.9-dj1 the
scsi disk driver (sd) fails in sd_init() 
with OOM causing the scsi disk holding my
root fs not to be found. The kmalloc(,GFP_ATOMIC)
for the array of "struct hd_struct" returns NULL.
Strange that my Athlon 1.2 GHz box with 512 MB of
ram should get an OOM error at that point.

Pete Zaitcev came across similar problems in the
2.4 series which he has addressed by changing the
kmalloc() to vmalloc().

Rather than a minimal patch, the attachment uses
vmalloc() and does a cleanup of the sd driver that was 
presented in an earlier post:
http://marc.theaimsgroup.com/?l=linux-scsi&m=101798201714399&w=2
As noted in that post, the attachment also fixes an
oops resulting from this sequence (when sd is a module):
 $ modprobe sd_mod; rmmod sd_mod; modprobe sd_mod


Doug Gilbert

[-- Attachment #2: sd203_259dj1.diff.gz --]
[-- Type: application/x-gzip, Size: 14498 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-24  2:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-24  1:56 [PATCH] 2.5.9-dj1 sd_init() fails at boot Douglas Gilbert

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).