Source-Changes-HG archive

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

[src/trunk]: src/sys/coda tuck in code inside the mutex



details:   https://anonhg.NetBSD.org/src/rev/0df2e8395b57
branches:  trunk
changeset: 791578:0df2e8395b57
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 23 23:14:55 2013 +0000

description:
tuck in code inside the mutex

diffstat:

 sys/coda/coda_vfsops.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9504bb024c9e -r 0df2e8395b57 sys/coda/coda_vfsops.c
--- a/sys/coda/coda_vfsops.c    Sat Nov 23 22:52:40 2013 +0000
+++ b/sys/coda/coda_vfsops.c    Sat Nov 23 23:14:55 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_vfsops.c,v 1.76 2013/11/23 17:57:23 christos Exp $        */
+/*     $NetBSD: coda_vfsops.c,v 1.77 2013/11/23 23:14:55 christos Exp $        */
 
 /*
  *
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_vfsops.c,v 1.76 2013/11/23 17:57:23 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_vfsops.c,v 1.77 2013/11/23 23:14:55 christos Exp $");
 
 #ifndef _KERNEL_OPT
 #define        NVCODA 4
@@ -623,6 +623,7 @@
            break;
        }
     }
+    mp = mp == TAILQ_END(&mountlist) ? NULL : mp;
     mutex_exit(&mountlist_lock);
-    return mp == TAILQ_END(&mountlist) ? NULL : mp;
+    return mp;
 }



Home | Main Index | Thread Index | Old Index