From: Jeff Chua <jeffchua@silk.corp.fedex.com>
To: linus@silk.corp.fedex.com, Werner.Almesberger@epfl.ch,
viro@math.psu.edu, linux-kernel@silk.corp.fedex.com,
jchua@fedex.com
Subject: Re: [PATCH,RFC] initrd vs. BLKFLSBUF
Date: Mon, 1 Jan 2001 15:36:24 +0800 [thread overview]
Message-ID: <200101010736.f017aOq23370@silk.corp.fedex.com> (raw)
Linus,
Happy new year.
I hope that the following patch will be included in the final 2.4.0 release.
Without it, the memory held by initrd ramdisk will never be freed!!!
Thanks,
Jeff
From: "Werner Almesberger" <Werner.Almesberger@epfl.ch>
To: <viro@math.psu.edu>
Cc: <jchua@fedex.com>; <linux-kernel@vger.kernel.org>
Sent: Monday, November 20, 2000 11:21 AM
Subject: [PATCH,RFC] initrd vs. BLKFLSBUF
Hi Al,
Jeff Chua reported a while ago that BLKFLSBUF returns EBUSY on a RAM disk
that was obtained via initrd. I think the problem is that the effect of
the blkdev_open(out_inode, ...) in drivers/block/rd.c:rd_load_image is
not undone at the end. I've attached a patch for 2.4.0-test11-pre7 that
seems to solve the problem. Since I'm not quite sure I understand the
reference counting rules there, I would appreciate your comment.
Thanks,
- Werner
---------------------------------- cut here -----------------------------------
--- linux.orig/drivers/block/rd.c Mon Nov 20 02:07:47 2000
+++ linux/drivers/block/rd.c Mon Nov 20 04:03:42 2000
@@ -690,6 +690,7 @@
done:
if (infile.f_op->release)
infile.f_op->release(inode, &infile);
+ blkdev_put(out_inode->i_bdev, BDEV_FILE);
set_fs(fs);
return;
free_inodes: /* free inodes on error */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2001-01-01 8:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-01 7:36 Jeff Chua [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-12-11 11:59 Jeff Chua
2000-11-20 3:21 Werner Almesberger
2000-11-20 7:36 ` Jeff Chua
2000-12-11 11:50 ` Jeff Chua
2000-12-11 15:00 ` Werner Almesberger
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=200101010736.f017aOq23370@silk.corp.fedex.com \
--to=jeffchua@silk.corp.fedex.com \
--cc=Werner.Almesberger@epfl.ch \
--cc=jchua@fedex.com \
--cc=linus@silk.corp.fedex.com \
--cc=linux-kernel@silk.corp.fedex.com \
--cc=viro@math.psu.edu \
/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®