Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/nfs Pull up revision 1.93 (requested by wrstuden):
details: https://anonhg.NetBSD.org/src/rev/73f814cada1b
branches: netbsd-1-5
changeset: 491187:73f814cada1b
user: he <he%NetBSD.org@localhost>
date: Fri Apr 06 00:02:45 2001 +0000
description:
Pull up revision 1.93 (requested by wrstuden):
Explicitly VOP_UNLOCK before setting v_op to spec_vnode_ops_p.
Works around a lock leak and eventual kernel panic.
diffstat:
sys/nfs/nfs_subs.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 966cea5faf9c -r 73f814cada1b sys/nfs/nfs_subs.c
--- a/sys/nfs/nfs_subs.c Thu Apr 05 23:56:00 2001 +0000
+++ b/sys/nfs/nfs_subs.c Fri Apr 06 00:02:45 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_subs.c,v 1.77.2.3 2000/12/14 23:37:09 he Exp $ */
+/* $NetBSD: nfs_subs.c,v 1.77.2.4 2001/04/06 00:02:45 he Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -1595,8 +1595,9 @@
*/
nvp->v_data = vp->v_data;
vp->v_data = NULL;
+ VOP_UNLOCK(vp, 0);
vp->v_op = spec_vnodeop_p;
- vput(vp);
+ vrele(vp);
vgone(vp);
/*
* XXX When nfs starts locking, we need to
Home |
Main Index |
Thread Index |
Old Index