* [PATCH] initrd fails again in 2.5.18
@ 2002-05-27 22:56 James Bottomley
0 siblings, 0 replies; only message in thread
From: James Bottomley @ 2002-05-27 22:56 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 591 bytes --]
The initial ramdisk fails to work with a slew of errors like:
generic_make_request: Trying to access nonexistent block-device 01:00 (2)
The problem was caused by change
kdev_t -> bdev cleanups [2/2]
which took out the ability of bdev_get_queue() to create a queue if one didn't
already exist for the device. The functionality was moved to
block_dev.c:do_open() where it exists within the if(!bdev->bd_openers) which
the ramdisk never gets to.
The (tested) fix, I think, is to set bd_queue as part of ramdisk
initialisation, which is what the attached patch does.
James Bottomley
[-- Attachment #2: rd-2.5.18.diff --]
[-- Type: text/plain , Size: 392 bytes --]
===== drivers/block/rd.c 1.38 vs edited =====
--- 1.38/drivers/block/rd.c Thu May 23 08:18:38 2002
+++ edited/drivers/block/rd.c Mon May 27 17:11:40 2002
@@ -379,6 +379,7 @@
rd_bdev[unit]->bd_openers++;
rd_bdev[unit]->bd_block_size = rd_blocksize;
rd_bdev[unit]->bd_inode->i_mapping->a_ops = &ramdisk_aops;
+ rd_bdev[unit]->bd_queue = BLK_DEFAULT_QUEUE(MAJOR_NR);
}
return 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-27 22:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-27 22:56 [PATCH] initrd fails again in 2.5.18 James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®