From: Alex Tomas <bzzz@sun.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: Andreas Dilger <adilger@sun.com>, linux-ext4@vger.kernel.org
Subject: Re: Potential bug in mballoc --- reusing data blocks before txn commit
Date: Tue, 30 Sep 2008 00:21:06 +0400 [thread overview]
Message-ID: <48E138B2.8080707@sun.com> (raw)
In-Reply-To: <E1KjlCM-0002L7-SO@closure.thunk.org>
Theodore Ts'o wrote:
> I'll also note that a linked list of extents that should be freed would
> also be useful for implementing the trim command for SSD's --- and that
> this would be much more cleanly implemented via a callback from the jbd2
> layer when a commit is finished, rather than the current
> ext4_mb_poll_new_transaction() mechanism.
yes, polling is a hack as we lost commit callback long ago.
> In any case, is there a reason why the mballoc.c is using its current
> scheme, and not using kj->b_commited_data as in the original balloc.c
> code? And was there a reason why you decided that it wasn't necessary
> to protect freed data blocks from being reused until the transaction was
> committed?
I think we don't really care about data consistency much. so I tried to save
some memory (given amount of metadata is smaller usually).
thanks, Alex
next prev parent reply other threads:[~2008-09-29 20:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-28 1:35 Potential bug in mballoc --- reusing data blocks before txn commit Theodore Ts'o
2008-09-29 20:21 ` Alex Tomas [this message]
2008-09-29 20:57 ` Theodore Tso
2008-09-29 21:04 ` Ric Wheeler
2008-09-29 23:00 ` Theodore Tso
2008-09-29 23:05 ` Ric Wheeler
2008-09-30 4:35 ` Alex Tomas
2008-09-30 13:02 ` Theodore Tso
2008-09-30 13:12 ` Alex Tomas
2008-09-30 14:15 ` Theodore Tso
2008-10-01 7:17 ` Andreas Dilger
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=48E138B2.8080707@sun.com \
--to=bzzz@sun.com \
--cc=adilger@sun.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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.