]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix BUG when calling ext4_error with locked block group
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 6 Jan 2009 03:19:52 +0000 (22:19 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Jan 2009 03:19:52 +0000 (22:19 -0500)
commitee303e467a47c90f60d175fe4d824c0141558950
treee6277cd3e01c074403b9da7390de1daa6b9f248f
parent119c38cde995eb917820a6b47a9d1c1916f519cc
ext4: fix BUG when calling ext4_error with locked block group

The mballoc code likes to call ext4_error while it is holding locked
block groups.  This can causes a scheduling in atomic context BUG.  We
can't just unlock the block group and relock it after/if ext4_error
returns since that might result in race conditions in the case where
the filesystem is set to continue after finding errors.

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