From: "Stephen C. Tweedie" <sct@redhat.com>
To: Andreas Dilger <adilger@turbolinux.com>
Cc: linux-lvm@sistina.com, jweber@valinux.com,
"Stephen C. Tweedie" <sct@redhat.com>,
"Heinz J. Mauelshagen" <mauelshagen@sistina.com>
Subject: Re: [linux-lvm] LVM 0.9 snapshot and ext3
Date: Thu, 30 Nov 2000 09:46:30 +0000 [thread overview]
Message-ID: <20001130094630.E3027@redhat.com> (raw)
In-Reply-To: <200011291018.eATAI6K21538@webber.adilger.net>; from adilger@turbolinux.com on Wed, Nov 29, 2000 at 03:18:06AM -0700
Hi,
On Wed, Nov 29, 2000 at 03:18:06AM -0700, Andreas Dilger wrote:
> > Maybe LVM isn't cleaning up the buffer properly when it runs out of space
> > in the snapshot...
>
> Judging by the assertion (the buffer is still locked), and the fact that
> this flag BH_Lock is what's set when a buffer is being written, and
> cleared by wait_on_buffer(), LVM may need to be waiting on it's snapshot
> I/Os to complete if it will later destroy the snapshot...
Right. There are only two ways the assertion can fail: the buffer is
locked for read, or for write. By this stage, ext3 has frozen all of
the filesystem operations which were working on this buffer, but may
have started collecting new updates while the old ones are committing,
so there is the possibility of ext3 doing concurrent access while we
are doing this journal operation.
So, is somebody else doing a read? It could be ext3, conceivably, if
we had had an IO error previously on the buffer and the BH_uptodate
flag had been cleared: a subsequent access to the buffer by another
process would try to reread the buffer off disk, locking it
temporarily. Could you load the ext3 kdb debugging extensions and run
a "bh <buffer_head address>" on the buffer-head once the oops drops
you into kdb monitor mode? That way, we can find out whether the
dirty bit has been set on the buffer_head.
Cheers,
Stephen
next prev parent reply other threads:[~2000-11-30 9:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-29 6:09 [linux-lvm] LVM 0.9 snapshot and ext3 Jay Weber
2000-11-29 6:21 ` Jay Weber
2000-11-29 6:24 ` Jay Weber
2000-11-29 7:01 ` Andreas Dilger
2000-11-29 10:18 ` Andreas Dilger
2000-11-30 9:46 ` Stephen C. Tweedie [this message]
2000-11-30 19:48 ` Andreas Dilger
2000-11-30 20:16 ` Andreas Dilger
2000-11-30 22:04 ` Jay Weber
2000-12-01 15:06 ` Stephen C. Tweedie
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=20001130094630.E3027@redhat.com \
--to=sct@redhat.com \
--cc=adilger@turbolinux.com \
--cc=jweber@valinux.com \
--cc=linux-lvm@sistina.com \
--cc=mauelshagen@sistina.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.