From: James Bottomley <James.Bottomley@steeleye.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] initrd fails again in 2.5.18
Date: Mon, 27 May 2002 18:56:27 -0400 [thread overview]
Message-ID: <200205272256.g4RMuRH03974@localhost.localdomain> (raw)
[-- 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;
reply other threads:[~2002-05-27 22:56 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=200205272256.g4RMuRH03974@localhost.localdomain \
--to=james.bottomley@steeleye.com \
--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
all inboxes | Powered by JetHome®