All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Jens Axboe <axboe@kernel.org>
Cc: Neil Brown <neilb@cse.unsw.edu.au>,
	Joe Thornber <joe@fib011235813.fsnet.co.uk>,
	linux-lvm@sistina.com, linux-kernel@vger.kernel.org
Subject: Re: [linux-lvm] LVM2 modifies the buffer_head struct?
Date: Thu Jul  4 03:34:01 2002	[thread overview]
Message-ID: <3D2409FA.44E88C1D@zip.com.au> (raw)
In-Reply-To: 20020704075830.GQ21568@suse.de

Jens Axboe wrote:
> 
> ...
> > We just want ext3/jbd to make sure that it only calls bh2jh on
> > an unlocked buffer... is that easy?
> 
> That's the question indeed, someone with a good grasp of jbd should make
> that call. If that is the only 'violator' (depending on your point of
> view), then yes lets just fix that up and say that the above is pb
> private is valid.

We really don't want to do this, please.  Changing things so
that we can only run bh2jh() and, particularly, journal_add_journal_head()
on a locked buffer would involve fairly unpleasant surgery against
parts of ext3 which are already prone to exploding.  Like
do_get_write_access().

If it was needed for 2.5 then hmm, maybe.  But as this is only a
2.4 problem then I really don't think we should risk breaking
or slowing down the filesystem for this.

Look, it's easy: delete buffer_head.b_inode (which is only used as 
a boolean), move its function to a b_state bit.  Add a new
buffer_head.ext3_hack and we can use that for pointing at the journal_head.

<insert "stable kernel" mantra here ;)>

-

WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@zip.com.au>
To: Jens Axboe <axboe@kernel.org>
Cc: Neil Brown <neilb@cse.unsw.edu.au>,
	Joe Thornber <joe@fib011235813.fsnet.co.uk>,
	linux-lvm@sistina.com, linux-kernel@vger.kernel.org
Subject: Re: [linux-lvm] LVM2 modifies the buffer_head struct?
Date: Thu, 04 Jul 2002 01:40:26 -0700	[thread overview]
Message-ID: <3D2409FA.44E88C1D@zip.com.au> (raw)
In-Reply-To: 20020704075830.GQ21568@suse.de

Jens Axboe wrote:
> 
> ...
> > We just want ext3/jbd to make sure that it only calls bh2jh on
> > an unlocked buffer... is that easy?
> 
> That's the question indeed, someone with a good grasp of jbd should make
> that call. If that is the only 'violator' (depending on your point of
> view), then yes lets just fix that up and say that the above is pb
> private is valid.

We really don't want to do this, please.  Changing things so
that we can only run bh2jh() and, particularly, journal_add_journal_head()
on a locked buffer would involve fairly unpleasant surgery against
parts of ext3 which are already prone to exploding.  Like
do_get_write_access().

If it was needed for 2.5 then hmm, maybe.  But as this is only a
2.4 problem then I really don't think we should risk breaking
or slowing down the filesystem for this.

Look, it's easy: delete buffer_head.b_inode (which is only used as 
a boolean), move its function to a b_state bit.  Add a new
buffer_head.ext3_hack and we can use that for pointing at the journal_head.

<insert "stable kernel" mantra here ;)>

-

  reply	other threads:[~2002-07-04  3:34 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-02  8:41 [linux-lvm] LVM2 modifies the buffer_head struct? Tom Walcott
2002-07-02  9:17 ` Joe Thornber
2002-07-02 14:17   ` Joe Thornber
2002-07-03  5:09   ` Jens Axboe
2002-07-03 10:08     ` Jens Axboe
2002-07-03  5:23     ` Andrew Morton
2002-07-03 10:28       ` Andrew Morton
2002-07-03  7:01     ` Joe Thornber
2002-07-03 12:01       ` Joe Thornber
2002-07-03  7:10       ` Jens Axboe
2002-07-03 12:10         ` Jens Axboe
2002-07-03 23:44         ` Neil Brown
2002-07-04  4:46           ` Neil Brown
2002-07-04  0:39           ` Andrew Morton
2002-07-04  5:44             ` Andrew Morton
2002-07-04  2:46           ` Joe Thornber
2002-07-04  7:45             ` Joe Thornber
2002-07-04  2:58           ` Jens Axboe
2002-07-04  7:58             ` Jens Axboe
2002-07-04  3:34             ` Andrew Morton [this message]
2002-07-04  8:40               ` Andrew Morton
2002-07-04  3:40               ` Jens Axboe
2002-07-04  8:39                 ` Jens Axboe
2002-07-04  3:58                 ` Joe Thornber
2002-07-04  8:57                   ` Joe Thornber
2002-07-04  4:00                   ` Jens Axboe
2002-07-04  9:00                     ` Jens Axboe
2002-07-04  4:38                 ` Andrew Morton
2002-07-04  9:44                   ` Andrew Morton
2002-07-07 14:52                   ` Joe Thornber
2002-07-07 20:51                     ` Joe Thornber
  -- strict thread matches above, loose matches on Subject: below --
2002-07-05  0:21 Mark Peloquin
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=3D2409FA.44E88C1D@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=axboe@kernel.org \
    --cc=joe@fib011235813.fsnet.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-lvm@sistina.com \
    --cc=neilb@cse.unsw.edu.au \
    /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.