public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Gianluca Anzolin <g.anzolin@inwind.it>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.7-pre6 can't complete e2fsck
Date: Mon, 16 Jul 2001 20:28:25 +0200	[thread overview]
Message-ID: <20010716202825.J11978@athlon.random> (raw)
In-Reply-To: <20010716132933.A216@fourier.home.intranet> <20010716190653.E11978@athlon.random>
In-Reply-To: <20010716190653.E11978@athlon.random>; from andrea@suse.de on Mon, Jul 16, 2001 at 07:06:53PM +0200

On Mon, Jul 16, 2001 at 07:06:53PM +0200, Andrea Arcangeli wrote:
> I can reproduce so it will be fixed in the next release. thanks for the

Ok, it was because I developed the blkdev-pagecache and
00_drop_async-io-get_bh-1 patches in two separated trees.

When both patches passed all the regression testing I merged both
into 2.4.7pre6aa1 but unfortunately no reject reminded me I had to drop
the get_bh from the async handler used by the blkdev pagecache (sorry!).

So in short this incremental patch on top of 2.4.7pre6aa1 will fix your
problem (at least it did for mine):

--- 2.4.7pre6aa1/fs/block_dev.c.~1~	Mon Jul 16 19:16:44 2001
+++ 2.4.7pre6aa1/fs/block_dev.c	Mon Jul 16 20:15:51 2001
@@ -105,7 +105,6 @@
 	do {
 		lock_buffer(bh);
 		set_buffer_async_io(bh);
-		atomic_inc(&bh->b_count);
 		set_bit(BH_Uptodate, &bh->b_state);
 		clear_bit(BH_Dirty, &bh->b_state);
 		bh = bh->b_this_page;
@@ -189,7 +188,6 @@
 		struct buffer_head * bh = arr[i];
 		lock_buffer(bh);
 		set_buffer_async_io(bh);
-		atomic_inc(&bh->b_count);
 	}
 
 	/* Stage 3: start the IO */


I guess I will keep the above patch separated from the blkdev patch to
ensure I won't forget about it (and also because if for whatever reason
somebody can see any reason for which dropping the
00_drop_async-io-get_bh-1 patch could be a good thing in the long run, I
won't need to rediff the blkdev patch)

Andrea

  reply	other threads:[~2001-07-16 18:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-16 11:29 2.4.7-pre6 can't complete e2fsck Gianluca Anzolin
2001-07-16 17:06 ` Andrea Arcangeli
2001-07-16 18:28   ` Andrea Arcangeli [this message]
2001-07-17 23:23     ` Kurt Garloff

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=20010716202825.J11978@athlon.random \
    --to=andrea@suse.de \
    --cc=g.anzolin@inwind.it \
    --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