Module Name: src Committed By: dholland Date: Mon Apr 11 02:14:57 UTC 2011
Modified Files: src/sys/kern: vfs_lookup.c Log Message: description: vref new vnodes before vrele'ing old vnodes, just in case. To generate a diff of this commit: cvs rdiff -u -r1.152 -r1.153 src/sys/kern/vfs_lookup.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/vfs_lookup.c diff -u src/sys/kern/vfs_lookup.c:1.152 src/sys/kern/vfs_lookup.c:1.153 --- src/sys/kern/vfs_lookup.c:1.152 Mon Apr 11 02:13:22 2011 +++ src/sys/kern/vfs_lookup.c Mon Apr 11 02:14:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_lookup.c,v 1.152 2011/04/11 02:13:22 dholland Exp $ */ +/* $NetBSD: vfs_lookup.c,v 1.153 2011/04/11 02:14:57 dholland Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.152 2011/04/11 02:13:22 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.153 2011/04/11 02:14:57 dholland Exp $"); #include "opt_magiclinks.h" @@ -910,8 +910,8 @@ break; tdp = searchdir; searchdir = searchdir->v_mount->mnt_vnodecovered; - vput(tdp); vref(searchdir); + vput(tdp); vn_lock(searchdir, LK_EXCLUSIVE | LK_RETRY); } } @@ -936,8 +936,8 @@ (searchdir->v_mount->mnt_flag & MNT_UNION)) { tdp = searchdir; searchdir = searchdir->v_mount->mnt_vnodecovered; - vput(tdp); vref(searchdir); + vput(tdp); vn_lock(searchdir, LK_EXCLUSIVE | LK_RETRY); goto unionlookup; }