From: "Stephen C. Tweedie" <sct@redhat.com>
To: Andrew Morton <akpm@digeo.com>
Cc: "Stephen C. Tweedie" <sct@redhat.com>,
Mark Hazell <nutts@penguinmail.com>,
adilger@clusterfs.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: Re: [patch/2.4] ll_rw_blk stomping on bh state [Re: kernel BUG at journal.c:1732! (2.4.19)]
Date: Tue, 12 Nov 2002 18:53:45 +0000 [thread overview]
Message-ID: <20021112185345.H2837@redhat.com> (raw)
In-Reply-To: <3DD140F1.F4AED387@digeo.com>; from akpm@digeo.com on Tue, Nov 12, 2002 at 09:57:05AM -0800
Hi,
On Tue, Nov 12, 2002 at 09:57:05AM -0800, Andrew Morton wrote:
> "Stephen C. Tweedie" wrote:
> >
> > if (maxsector < count || maxsector - count < sector) {
> > /* Yecch */
> > bh->b_state &= (1 << BH_Lock) | (1 << BH_Mapped);
> > ...
> > Folks, just which buffer flags do we want to preserve in this case?
> Why do we want to clear any flags in there at all? To prevent
> a storm of error messages from a buffer which has a silly block
> number?
That's the only reason I can think of. Simply scrubbing all the state
bits is totally the wrong way of going about that, of course.
> If so, how about setting a new state bit which causes subsequent
> IO attempts to silently drop the IO on the floor?
The only problem I could think of there would be weird interactions
with LVM if somebody lvextends a volume and the buffer suddenly
becomes valid again. I can't bring myself to care about breaking that
situation. :-)
--Stephen
WARNING: multiple messages have this Message-ID (diff)
From: "Stephen C. Tweedie" <sct@redhat.com>
To: Andrew Morton <akpm@digeo.com>
Cc: "Stephen C. Tweedie" <sct@redhat.com>,
Mark Hazell <nutts@penguinmail.com>,
adilger@clusterfs.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: Re: [patch/2.4] ll_rw_blk stomping on bh state [Re: kernel BUG at journal.c:1732! (2.4.19)]
Date: Tue, 12 Nov 2002 18:53:45 +0000 [thread overview]
Message-ID: <20021112185345.H2837@redhat.com> (raw)
In-Reply-To: <3DD140F1.F4AED387@digeo.com>; from akpm@digeo.com on Tue, Nov 12, 2002 at 09:57:05AM -0800
Hi,
On Tue, Nov 12, 2002 at 09:57:05AM -0800, Andrew Morton wrote:
> "Stephen C. Tweedie" wrote:
> >
> > if (maxsector < count || maxsector - count < sector) {
> > /* Yecch */
> > bh->b_state &= (1 << BH_Lock) | (1 << BH_Mapped);
> > ...
> > Folks, just which buffer flags do we want to preserve in this case?
> Why do we want to clear any flags in there at all? To prevent
> a storm of error messages from a buffer which has a silly block
> number?
That's the only reason I can think of. Simply scrubbing all the state
bits is totally the wrong way of going about that, of course.
> If so, how about setting a new state bit which causes subsequent
> IO attempts to silently drop the IO on the floor?
The only problem I could think of there would be weird interactions
with LVM if somebody lvextends a volume and the buffer suddenly
becomes valid again. I can't bring myself to care about breaking that
situation. :-)
--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
next prev parent reply other threads:[~2002-11-12 18:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20021028111357.78197071.nutts@penguinmail.com>
2002-11-12 15:07 ` [patch/2.4] ll_rw_blk stomping on bh state [Re: kernel BUG at journal.c:1732! (2.4.19)] Stephen C. Tweedie
2002-11-12 17:57 ` Andrew Morton
2002-11-12 17:57 ` Andrew Morton
2002-11-12 18:53 ` Stephen C. Tweedie [this message]
2002-11-12 18:53 ` Stephen C. Tweedie
2002-11-15 17:38 ` Stephen C. Tweedie
2002-11-15 17:38 ` Stephen C. Tweedie
2002-11-15 18:05 ` Andrew Morton
2002-11-15 18:05 ` Andrew Morton
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=20021112185345.H2837@redhat.com \
--to=sct@redhat.com \
--cc=adilger@clusterfs.com \
--cc=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nutts@penguinmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.