From: Theodore Tso <tytso@mit.edu>
To: Mingming Cao <cmm@us.ibm.com>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
linux-ext4 <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] Ext4: Fix delalloc enospace handling counter update race
Date: Mon, 14 Jul 2008 14:05:06 -0400 [thread overview]
Message-ID: <20080714180505.GA8886@mit.edu> (raw)
In-Reply-To: <1216058076.6468.11.camel@mingming-laptop>
On Mon, Jul 14, 2008 at 10:54:36AM -0700, Mingming Cao wrote:
> Updated patch with only the first race fix,
>
> If no objection I will fold this to the parent patch
> delalloc-ext4-ENOSPC-handling.patch in the patch queue.
If you're going to fold this to the parent patch (which makes sense),
the following grammatical correction won't be necessary, but here are
some mostly verb tense fixups.
> Ext4: Fix delalloc enospace handling counter update race
>
> From: Mingming Cao <cmm@us.ibm.com>
>
> Ext4 delalloc reserve meta blocks ahead of time so later when real block
reserves
> allocation fs will not short of free blocks for allocating meta blocks.
"will not run out"
> It keeps track of the real number of new allocated meta data blocks, so
newly and
> after block allocation it will update how much meta data blocks still
updates
> need to be reserved for that inode.
>
> Both per inode reserved metadata blocks and per-allocation allocated metablocks
> are protected by the per inode delalloc reservation lock. The per-allocation
> allocated metablocks counter should be protected by the i_data_sem as well,
> so that it could avoid race with other block allocation to the same inode
to avoid racing with ther block allocations
> in parallel. The patch moves the code under the i_data_sem protection.
Please feel free to add a
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
to the patch.
- Ted
next prev parent reply other threads:[~2008-07-14 18:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-13 6:26 [patch 4/4] ext4: replace __FUNCTION__ occurrences akpm
2008-07-14 1:08 ` Theodore Tso
2008-07-14 16:28 ` [PATCH] Ext4: Fix delalloc enospace handling counter update race Mingming Cao
2008-07-14 16:53 ` Aneesh Kumar K.V
2008-07-14 17:54 ` Mingming Cao
2008-07-14 18:05 ` Theodore Tso [this message]
2008-07-14 18:34 ` Mingming Cao
2008-07-15 3:12 ` Aneesh Kumar K.V
2008-07-15 21:12 ` Mingming Cao
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=20080714180505.GA8886@mit.edu \
--to=tytso@mit.edu \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=cmm@us.ibm.com \
--cc=linux-ext4@vger.kernel.org \
/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