cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH] GFS2: Eliminate bitmap clones
Date: Tue, 3 Jul 2018 15:34:24 +0100	[thread overview]
Message-ID: <ea782bc8-0fcd-0543-8e05-77bc1340d3bc@redhat.com> (raw)
In-Reply-To: <1706893656.47709899.1530624526353.JavaMail.zimbra@redhat.com>

Hi,


On 03/07/18 14:28, Bob Peterson wrote:
> Hi Steve,
>
> ----- Original Message -----
>>> Do we really still need "clone bitmaps" in gfs2? If so, why?
>>> I think maybe we can get rid of them. Can someone (Steve Whitehouse
>>> perhaps?) think of a scenario in which they're still needed? If so,
>>> please elaborate and give an example.
> (snip)
>> You need to ensure that the blocks cannot be reused in the same
>> transaction (thats true of all metadata blocks, not just inodes) in
>> order that recovery will work correctly. You cannot just eliminate the
>> bitmaps without adding a mechanism to prevent this reuse,
>>
>> Steve.
> I don't see how it's possible for a transaction to reuse the same blocks,
> even when transactions are combined.
Transactions get combined anyway as we batch them up for commit to the 
journal. The important thing is that we do not have blocks that get used 
in more than one way (data or metadata) in any one journal transaction. 
Otherwise when the journal is recovered we cannot figure out what the 
correct state should be, because we are missing information on the history.

So if we decide to find another mechanism to deal with that issue, then 
thats ok, but the usual caveats about backward compatibility apply of 
course, so it will not be easy to do. Also, we already have a todo list 
item to allow transactions to continue in parallel with the journal 
commit, and we should probably look at that problem first since it is is 
not easy and we don't want to do anything to make it harder than it 
needs to be in the mean time,

Steve.



      reply	other threads:[~2018-07-03 14:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2132185052.47517256.1530553894290.JavaMail.zimbra@redhat.com>
2018-07-02 17:58 ` [Cluster-devel] [GFS2 PATCH] GFS2: Eliminate bitmap clones Bob Peterson
2018-07-02 19:48   ` Andreas Gruenbacher
2018-07-03  9:00   ` Steven Whitehouse
2018-07-03 13:28     ` Bob Peterson
2018-07-03 14:34       ` Steven Whitehouse [this message]

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=ea782bc8-0fcd-0543-8e05-77bc1340d3bc@redhat.com \
    --to=swhiteho@redhat.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;
as well as URLs for NNTP newsgroup(s).