]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-rmdir-dont-hold-kernel-lock-20050819
authorChas Williams <chas@cmf.nrl.navy.mil>
Fri, 19 Aug 2005 16:33:28 +0000 (16:33 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 19 Aug 2005 16:33:28 +0000 (16:33 +0000)
potentially fix one of the deadlocks people have been seeing

(cherry picked from commit 49802c76b1a4cc1fb67e704e449325899ae42f0e)

src/afs/LINUX/osi_vnodeops.c

index fc5e8fa3bd0ed26c7aaad2f613a01352182d868c..a9df3ab910b9551ef7205c6b430ebce04911630c 100644 (file)
@@ -1098,9 +1098,8 @@ afs_linux_rmdir(struct inode *dip, struct dentry *dp)
     cred_t *credp = crref();
     const char *name = dp->d_name.name;
 
-#if defined(AFS_LINUX26_ENV)
-    lock_kernel();
-#endif
+    /* locking kernel conflicts with glock? */
+
     AFS_GLOCK();
     code = afs_rmdir(VTOAFS(dip), name, credp);
     AFS_GUNLOCK();
@@ -1117,9 +1116,6 @@ afs_linux_rmdir(struct inode *dip, struct dentry *dp)
        d_drop(dp);
     }
 
-#if defined(AFS_LINUX26_ENV)
-    unlock_kernel();
-#endif
     crfree(credp);
     return -code;
 }