[PATCH] Locking problems while EXT3FS_DEBUG on
authorGlauber de Oliveira Costa <glommer@br.ibm.com>
Sun, 30 Oct 2005 23:02:48 +0000 (15:02 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:23 +0000 (17:37 -0800)
commit5b11687924e40790deb0d5f959247ade82196665
tree29aa104cc40bd2c85e7bba0f4b404b04cd6f207a
parent2384f55f8aa520172c995965bd2f8a9740d53095
[PATCH] Locking problems while EXT3FS_DEBUG on

I noticed some problems while running ext3 with the debug flag set on.
More precisely, I was unable to umount the filesystem.  Some investigation
took me to the patch that follows.

At a first glance , the lock/unlock I've taken out seems really not
necessary, as the main code (outside debug) does not lock the super.  The
only additional danger operations that debug code introduces seems to be
related to bitmap, but bitmap operations tends to be all atomic anyway.

I also took the opportunity to fix 2 spelling errors.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext3/balloc.c
fs/ext3/ialloc.c
fs/ext3/inode.c