mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jan Rekorajski <baggins@sith.mimuw.edu.pl>
To: Kelledin Tane <runesong@earthlink.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Why can't I flush /dev/ram0?
Date: Mon, 18 Jun 2001 23:55:37 +0200	[thread overview]
Message-ID: <20010618235537.B17458@sith.mimuw.edu.pl> (raw)
In-Reply-To: <3B2E6EA3.3DED7D95@earthlink.net>
In-Reply-To: <3B2E6EA3.3DED7D95@earthlink.net>; from runesong@earthlink.net on Mon, Jun 18, 2001 at 04:12:03PM -0500

On Mon, 18 Jun 2001, Kelledin Tane wrote:

> At this point, I'm trying to get an initrd working properly.  So far, it
> works, the system boots, etc. etc., but whenever I try to do a "blockdev
> --flushbufs /dev/ram0", I get "device or resource busy"
> 
> When I mount the filesystem to check it out, nothing appears to have
> anything open on the filesystem.  So why am I not able to flush it
> clean?

Because of a bug present in Linus tree. Try this patch:

--- 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 */ 

BTW, it's fixed in -ac patches.

Jan
-- 
Jan Rękorajski            |  ALL SUSPECTS ARE GUILTY. PERIOD!
baggins<at>mimuw.edu.pl   |  OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY?
BOFH, MANIAC              |                   -- TROOPS by Kevin Rubio

  parent reply	other threads:[~2001-06-18 21:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-18 21:12 Kelledin Tane
2001-06-18 21:23 ` Richard B. Johnson
2001-06-18 21:41   ` Kelledin Tane
2001-06-18 21:55 ` Jan Rekorajski [this message]
2001-06-19  1:37   ` Kelledin Tane
2001-06-19  2:58 ` Linux 2.4.6-pre3 breaks ReiserFS mount on boot Shawn Starr
2001-06-19  3:14   ` Olivier Galibert
2001-06-19  3:23     ` Shawn Starr
2001-06-19  3:57       ` Shawn Starr
2001-06-19  4:59         ` Chris Mason
2001-06-19  5:06         ` Jeff Mahoney
2001-06-19  5:31           ` Neil Brown
2001-06-19  5:37             ` Jeff Mahoney
2001-06-25 13:40             ` Shawn Starr
2001-06-19  8:12       ` Justin Guyett
2001-06-19  9:33         ` Alan Cox
2001-06-19 15:13           ` Chris Mason
2001-06-19 15:35           ` David Ford
2001-06-19  3:32   ` Chris Mason

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=20010618235537.B17458@sith.mimuw.edu.pl \
    --to=baggins@sith.mimuw.edu.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=runesong@earthlink.net \
    /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®