Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/coda Instead of sharing the coda vnode lock with the ffs...



details:   https://anonhg.NetBSD.org/src/rev/a98f98bc40ee
branches:  trunk
changeset: 779103:a98f98bc40ee
user:      christos <christos%NetBSD.org@localhost>
date:      Wed May 02 16:51:01 2012 +0000

description:
Instead of sharing the coda vnode lock with the ffs vnode lock, share the
ffs vnode lock with coda.

diffstat:

 sys/coda/coda_vnops.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 847863c4283c -r a98f98bc40ee sys/coda/coda_vnops.c
--- a/sys/coda/coda_vnops.c     Wed May 02 15:57:15 2012 +0000
+++ b/sys/coda/coda_vnops.c     Wed May 02 16:51:01 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_vnops.c,v 1.84 2012/04/28 20:15:07 christos Exp $ */
+/*     $NetBSD: coda_vnops.c,v 1.85 2012/05/02 16:51:01 christos Exp $ */
 
 /*
  *
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.84 2012/04/28 20:15:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.85 2012/05/02 16:51:01 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1808,10 +1808,9 @@
            (unsigned long long)dev, (unsigned long long)ino, *vpp, error));
        return(ENOENT);
     }
-    /* share the lock with the underlying vnode */
-    mutex_obj_hold(uvp->v_interlock);
-    uvm_obj_setlock(&(*vpp)->v_uobj, uvp->v_interlock);
-
+    /* share the underlying vnode lock with the coda vnode */
+    mutex_obj_hold((*vpp)->v_interlock);
+    uvm_obj_setlock(&uvp->v_uobj, (*vpp)->v_interlock);
     return(0);
 }
 



Home | Main Index | Thread Index | Old Index