]> git.neil.brown.name Git - history.git/commit
[PATCH] fix fs->lock deadlock with emulated name lookup
authorDavid Mosberger <davidm@napali.hpl.hp.com>
Wed, 16 Apr 2003 04:20:26 +0000 (21:20 -0700)
committerDavid Mosberger <davidm@napali.hpl.hp.com>
Wed, 16 Apr 2003 04:20:26 +0000 (21:20 -0700)
commit1c5d9bc346d741c6ce477798384b3080923819c2
treec61ff83cc287d6890a55d1f2158cf87da21b2383
parent8483284e7f476fbcd5690de51e01f653f4b03233
[PATCH] fix fs->lock deadlock with emulated name lookup

The patch below is needed to avoid a deadlock on fs->lock.  Without
the patch, if __emul_lookup_dentry() returns 0, we fail to reacquire
current->fs->lock and then go ahead to read_unlock() it anyhow.  Bad
for your health.

I believe the bug was introduced when the fast pathwalk was reverted
in order to introduce the RCU lockless path walking.
fs/namei.c