The following patch is trivially correct. The function fh_unlock()
uses the dentry in the file handle in order to release the inode
semaphore. Without it, mkdir() etc will --and do-- Oops...
Cheers,
Trond
diff -u --recursive --new-file linux-2.3.99-pre10-3/fs/nfsd/nfsfh.c linux-2.3.99-pre10-3-nfsd/fs/nfsd/nfsfh.c
--- linux-2.3.99-pre10-3/fs/nfsd/nfsfh.c Sat May 20 21:19:41 2000
+++ linux-2.3.99-pre10-3-nfsd/fs/nfsd/nfsfh.c Thu May 25 15:53:27 2000
@@ -812,8 +812,8 @@
{
struct dentry * dentry = fhp->fh_dentry;
if (fhp->fh_dverified) {
- fhp->fh_dentry = NULL;
fh_unlock(fhp);
+ fhp->fh_dentry = NULL;
fhp->fh_dverified = 0;
dput(dentry);
nfsd_nr_put++;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:14 EST