Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/kern Pull up following revision(s) (requested by hann...



details:   https://anonhg.NetBSD.org/src/rev/dca14228c69b
branches:  netbsd-7
changeset: 798809:dca14228c69b
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jan 09 14:50:35 2015 +0000

description:
Pull up following revision(s) (requested by hannken in ticket #398):
        sys/kern/vfs_mount.c: revision 1.32
vfs_vnode_iterator_destroy: set v_usecount of marker to zero to prevent
an assertion from vnfree().

diffstat:

 sys/kern/vfs_mount.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 7357e6bf9bd8 -r dca14228c69b sys/kern/vfs_mount.c
--- a/sys/kern/vfs_mount.c      Fri Jan 09 14:07:56 2015 +0000
+++ b/sys/kern/vfs_mount.c      Fri Jan 09 14:50:35 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_mount.c,v 1.30.2.1 2014/11/18 18:40:06 snj Exp $   */
+/*     $NetBSD: vfs_mount.c,v 1.30.2.2 2015/01/09 14:50:35 martin Exp $        */
 
 /*-
  * Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.30.2.1 2014/11/18 18:40:06 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.30.2.2 2015/01/09 14:50:35 martin Exp $");
 
 #define _VFS_VNODE_PRIVATE
 
@@ -365,8 +365,10 @@
 
        mutex_enter(&mntvnode_lock);
        KASSERT(ISSET(mvp->v_iflag, VI_MARKER));
-       if (mvp->v_usecount != 0)
+       if (mvp->v_usecount != 0) {
                TAILQ_REMOVE(&mvp->v_mount->mnt_vnodelist, mvp, v_mntvnodes);
+               mvp->v_usecount = 0;
+       }
        mutex_exit(&mntvnode_lock);
        vnfree(mvp);
 }



Home | Main Index | Thread Index | Old Index