From: a3at.mail@gmail.com
To: tytso@mit.edu
Cc: "open list:EXT4 FILE SYSTEM" <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] ext4: initialize multi-block allocator before checking block descriptors
Date: Mon, 17 Mar 2014 00:56:59 +0400 [thread overview]
Message-ID: <20140316205659.GC19885@azat> (raw)
In-Reply-To: <20140316184634.GA14162@thunk.org>
On Sun, Mar 16, 2014 at 02:46:35PM -0400, tytso@mit.edu wrote:
> On Sun, Mar 16, 2014 at 08:17:13PM +0400, a3at.mail@gmail.com wrote:
> > And no complaints from xfs-tests, and no errors in dmesg.
> >
> > Could you give me more information about you playground?
>
> I just reproduced the problem this way. Starting with the ext4 dev
> branch of the ext4 git tree[1], which should be commit eb3e7abb161ad5,
> I applied your patch, as found in the ext4 patch queue's git tree[2],
> with the name initialize-multi-block-allocator-before-checking-block-descriptors
>
> I then ran a fairly recent version of xfstests (commit 3948694eb),
> under KVM with the kernel built using the 32-bit x86 architecture,
> with the KVM set up with 4 CPU's, and 2048 megs of memory. The 20 gig
> partition I used was formatted using "mke2fs -t ext4 -O bigalloc", and
> I used the mount options "-o block_validity" (this enables some
> additional sanity checking).
>
> The ext4 errors showed up when running xfstests ext4/305 this time
> around. Please see the attached compressed log file.
Thanks for additional information.
After I tested ext4 dev branch (eb3e7abb161ad5), without any xfs-tests complaints,
I understand what goes wrong, you have not last version of
this patch, the latest is v3.
(Actually you have description from last patch, but not the latest changes.)
I could resend the whole patch if you want to.
$ diff
initialize-multi-block-allocator-before-checking-block-descriptors <(env
GIT_DIR=/src/oss/linux/.git git show
ext4-fix-checking-descriptors-patch)
100,105c102,103
< @@ -4084,21 +4094,13 @@ no_journal:
< if (err) {
< ext4_msg(sb, KERN_ERR, "failed to reserve %llu clusters for "
< "reserved pool", ext4_calculate_resv_clusters(sb));
< - goto failed_mount4a;
< + goto failed_mount5;
---
> @@ -4094,14 +4104,6 @@ no_journal:
> goto failed_mount4a;
108,114d105
< err = ext4_setup_system_zone(sb);
< if (err) {
< ext4_msg(sb, KERN_ERR, "failed to initialize system "
< "zone (%d)", err);
< - goto failed_mount4a;
< - }
< -
120,123c111,117
< goto failed_mount5;
< }
<
< @@ -4175,11 +4177,8 @@ failed_mount8:
---
> - goto failed_mount5;
> - }
> -
> err = ext4_register_li_request(sb, first_not_zeroed);
> if (err)
> goto failed_mount6;
> @@ -4175,9 +4177,6 @@ failed_mount8:
131,132c125
< -failed_mount4a:
< +failed_mount5:
---
> failed_mount4a:
134,135d126
< sb->s_root = NULL;
< failed_mount4:
Thanks.
>
> Cheers,
>
> - Ted
>
> [1] git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git
> [2] git://repo.or.cz/ext4-patch-queue.git
>
--
Respectfully
Azat Khuzhin
next prev parent reply other threads:[~2014-03-16 20:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-15 21:40 [PATCH] ext4: initialize multi-block allocator before checking block descriptors tytso
2014-03-15 23:54 ` Azat Khuzhin
2014-03-16 2:38 ` tytso
2014-03-16 14:10 ` Azat Khuzhin
2014-03-16 16:17 ` a3at.mail
2014-03-16 18:46 ` tytso
2014-03-16 20:56 ` a3at.mail [this message]
2014-03-17 2:00 ` tytso
2014-03-17 16:19 ` Azat Khuzhin
2014-03-17 17:53 ` a3at.mail
2014-03-25 0:17 ` tytso
2014-03-25 6:24 ` a3at.mail
2014-04-05 15:51 ` Azat Khuzhin
2014-03-17 17:23 ` Darrick J. Wong
-- strict thread matches above, loose matches on Subject: below --
2014-02-10 10:25 Azat Khuzhin
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=20140316205659.GC19885@azat \
--to=a3at.mail@gmail.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.