From: Jens Axboe <axboe@suse.de>
To: Joe Thornber <joe@fib011235813.fsnet.co.uk>
Cc: linux-lvm@sistina.com, linux-kernel@vger.kernel.org,
Andrew Morton <akpm@zip.com.au>
Subject: Re: [linux-lvm] LVM2 modifies the buffer_head struct?
Date: Wed, 3 Jul 2002 12:08:38 +0200 [thread overview]
Message-ID: <20020703100838.GH14097@suse.de> (raw)
In-Reply-To: <20020702141702.GA9769@fib011235813.fsnet.co.uk>
On Tue, Jul 02 2002, Joe Thornber wrote:
> Tom,
>
> On Tue, Jul 02, 2002 at 09:40:56AM -0400, Tom Walcott wrote:
> > Hello,
> >
> > Browsing the patch submitted for 2.4 inclusion, I noticed that LVM2
> > modifies the buffer_head struct. Why does LVM2 require the addition of it's
> > own private field in the buffer_head? It seems that it should be able to
> > use the existing b_private field.
>
> This is a horrible hack to get around the fact that ext3 uses the
> b_private field for its own purposes after the buffer_head has been
> handed to the block layer (it doesn't just use b_private when in the
> b_end_io function). Is this acceptable behaviour ? Other filesystems
> do not have similar problems as far as I know.
>
> device-mapper uses the b_private field to 'hook' the buffer_heads so
> it can keep track of in flight ios (essential for implementing
> suspend/resume correctly). See dm.c:dec_pending()
Your driver is required to properly stack b_private uses, however if
ext3 (well jbd really) over writes b_private after bh i/o submission I
would say that it is broken. That breaks more than just device mapper,
that will break any stacked driver (such as loop, for instance).
--
Jens Axboe
next prev parent reply other threads:[~2002-07-03 10:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <F19741gcljD2E2044cY00004523@hotmail.com>
2002-07-02 14:17 ` [linux-lvm] LVM2 modifies the buffer_head struct? Joe Thornber
2002-07-03 10:08 ` Jens Axboe [this message]
2002-07-03 10:28 ` Andrew Morton
2002-07-03 12:01 ` Joe Thornber
2002-07-03 12:10 ` Jens Axboe
2002-07-04 4:46 ` Neil Brown
2002-07-04 5:44 ` Andrew Morton
2002-07-04 7:45 ` Joe Thornber
2002-07-04 7:58 ` Jens Axboe
2002-07-04 8:40 ` Andrew Morton
2002-07-04 8:39 ` Jens Axboe
2002-07-04 8:57 ` Joe Thornber
2002-07-04 9:00 ` Jens Axboe
2002-07-04 9:44 ` Andrew Morton
2002-07-07 20:51 ` Joe Thornber
2002-07-05 15:23 Mark Peloquin
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=20020703100838.GH14097@suse.de \
--to=axboe@suse.de \
--cc=akpm@zip.com.au \
--cc=joe@fib011235813.fsnet.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-lvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox