]> git.hungrycats.org Git - linux/commit
[PATCH] hpfs: deadlock fixes
authorAlexander Viro <viro@www.linux.org.uk>
Thu, 18 Mar 2004 05:24:12 +0000 (21:24 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 18 Mar 2004 05:24:12 +0000 (21:24 -0800)
commitd9013aaeb1258b30e169e904b5d4229118507b42
treee1e5441cf24d1f92ea841a88bb94e78203b3204e
parent772fd530badfe14a708a1f4df26b19bfbbb6785a
[PATCH] hpfs: deadlock fixes

We used to have GFP_KERNEL kmalloc() done by the code that held hpfs
lock on directory.  That could trigger a call of hpfs_write_inode() and
deadlock; fixed by switch to GFP_NOFS.  Same for hpfs inodes themselves
- hpfs_write_inode() calls iget() and that could trigger both the
deadlocks (avoidable with very baroque locking scheme) and stack
overflows (unavoidable unless we kill potential recursion here).
fs/hpfs/buffer.c
fs/hpfs/dnode.c
fs/hpfs/ea.c
fs/hpfs/super.c