]> git.hungrycats.org Git - linux/commit
[PATCH] d_delete-d_lookup race fix
authorAndrew Morton <akpm@osdl.org>
Tue, 9 Sep 2003 17:20:16 +0000 (10:20 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 17:20:16 +0000 (10:20 -0700)
commitee9966a52f6cf120358e9bb091fea822eafbac7c
tree914dd36cdfcf857985c837c510d70f32d53023c9
parent1a30ac21ca928ef241d8d9ee1f6b47763c700229
[PATCH] d_delete-d_lookup race fix

From: Maneesh Soni <maneesh@in.ibm.com>

d_delete() calls dentry_iput() after releasing the per dentry lock.  This
can race with __d_lookup and lead to situation where we can make dentry
negative with ref count > 1.  The following patch makes dentry_iput() to
hold per dentry lock till d_inode is NULL and dentry has been removed from
d_alias list.
fs/dcache.c