Re: EXT4: kernel BUG at fs/ext4/mballoc.c:1721!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Aneesh Kumar K.V
Date: Thursday, September 3, 2009 - 4:20 am

On Thu, Sep 03, 2009 at 01:46:08PM +0530, Sachin Sant wrote:

Can you try this patch ?

commit 43149bc800a6ae88b7d984558403e8d8cb045138
Author: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Date:   Thu Sep 3 16:47:27 2009 +0530

    ext4: check for good group with alloc_sem held
    
    We need to make sure we check for good group with alloc_sem
    held to make sure we prevent a parallel addition of new blocks
    to the group via resize.
    
    Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>

diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index cd25846..4623555 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2029,13 +2029,6 @@ repeat:
 					goto out;
 			}
 
-			/*
-			 * If the particular group doesn't satisfy our
-			 * criteria we continue with the next group
-			 */
-			if (!ext4_mb_good_group(ac, group, cr))
-				continue;
-
 			err = ext4_mb_load_buddy(sb, group, &e4b);
 			if (err)
 				goto out;
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
EXT4: kernel BUG at fs/ext4/mballoc.c:1721!, Sachin Sant, (Thu Sep 3, 1:16 am)
Re: EXT4: kernel BUG at fs/ext4/mballoc.c:1721!, Aneesh Kumar K.V, (Thu Sep 3, 4:20 am)
Re: EXT4: kernel BUG at fs/ext4/mballoc.c:1721!, Sachin Sant, (Fri Sep 4, 1:27 am)
Re: EXT4: kernel BUG at fs/ext4/mballoc.c:1721!, Aneesh Kumar K.V, (Fri Sep 4, 1:49 am)
Re: EXT4: kernel BUG at fs/ext4/mballoc.c:1721!, Andreas Dilger, (Fri Sep 4, 5:52 am)
Re: EXT4: kernel BUG at fs/ext4/mballoc.c:1721!, Aneesh Kumar K.V, (Mon Sep 7, 2:35 am)
[PATCH -V2 1/3] ext4: move ext4_mb_init_group around, Aneesh Kumar K.V, (Mon Sep 7, 2:38 am)
[PATCH -V2 3/3] ext4: Clarify the locking details in mballoc, Aneesh Kumar K.V, (Mon Sep 7, 2:38 am)