Source-Changes-HG archive

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

[src/trunk]: src/sys/coda Don't increment the mount reference count here. Oth...



details:   https://anonhg.NetBSD.org/src/rev/7c785c7c2d84
branches:  trunk
changeset: 780708:7c785c7c2d84
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 04 12:31:57 2012 +0000

description:
Don't increment the mount reference count here. Otherwise we are left with
refcount of one when we unmount, and vfs_destroy does not... Who is expected
to decrement this anyway?!?!

diffstat:

 sys/coda/coda_psdev.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 463b9f022fdc -r 7c785c7c2d84 sys/coda/coda_psdev.c
--- a/sys/coda/coda_psdev.c     Sat Aug 04 11:03:34 2012 +0000
+++ b/sys/coda/coda_psdev.c     Sat Aug 04 12:31:57 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_psdev.c,v 1.48 2012/04/26 03:04:54 christos Exp $ */
+/*     $NetBSD: coda_psdev.c,v 1.49 2012/08/04 12:31:57 christos Exp $ */
 
 /*
  *
@@ -54,7 +54,7 @@
 /* These routines are the device entry points for Venus. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_psdev.c,v 1.48 2012/04/26 03:04:54 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_psdev.c,v 1.49 2012/08/04 12:31:57 christos Exp $");
 
 extern int coda_nc_initialized;    /* Set if cache has been initialized */
 
@@ -202,7 +202,6 @@
     }
 
     /* Let unmount know this is for real */
-    atomic_inc_uint(&mi->mi_vfsp->mnt_refcnt);
     VTOC(mi->mi_rootvp)->c_flags |= C_UNMOUNTING;
     coda_unmounting(mi->mi_vfsp);
 



Home | Main Index | Thread Index | Old Index