ext4: Fix lockdep warning
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 10 Feb 2009 16:14:34 +0000 (11:14 -0500)
committerTheodore Tso <tytso@mit.edu>
Tue, 10 Feb 2009 16:14:34 +0000 (11:14 -0500)
commitba4439165f0f0d25b2fe065cf0c1ff8130b802eb
tree242f9aa5cc4fe0ca7d3062aa0a7ec713a4346bb8
parent7be2baaa0322c59ba888aa5260a8c130666acd41
ext4: Fix lockdep warning

We should not call ext4_mb_add_n_trim while holding alloc_semp.

    =============================================
    [ INFO: possible recursive locking detected ]
    2.6.29-rc4-git1-dirty #124
    ---------------------------------------------
    ffsb/3116 is trying to acquire lock:
     (&meta_group_info[i]->alloc_sem){----}, at: [<ffffffff8035a6e8>]
     ext4_mb_load_buddy+0xd2/0x343

    but task is already holding lock:
     (&meta_group_info[i]->alloc_sem){----}, at: [<ffffffff8035a6e8>]
     ext4_mb_load_buddy+0xd2/0x343

http://bugzilla.kernel.org/show_bug.cgi?id=12672

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c