]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-linux-vnode-aliases-20050802
authorChaskiel M Grundman <cg2v@andrew.cmu.edu>
Tue, 2 Aug 2005 20:00:58 +0000 (20:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 2 Aug 2005 20:00:58 +0000 (20:00 +0000)
FIXES 18613

you can end up hanging when you end up with multiple aliases for a single direct
ory (dentry) as a result of @sys or multiple mountpoints.

don't end up with multiple aliases, and avoid the situation

(cherry picked from commit f6ff3f769a8e84e9148c3c47c9e82d1bcb7d6f6a)

src/afs/LINUX/osi_vnodeops.c

index 9187614cf92081abf57be98bf5577defaa5e6208..67e2621a2cebd47a849bae13d6ab71ab994aa9f1 100644 (file)
@@ -913,6 +913,7 @@ afs_linux_lookup(struct inode *dip, struct dentry *dp)
     if (res) {
        if (d_unhashed(res))
            d_rehash(res);
+       iput(ip);
     } else
 #endif
     d_add(dp, ip);