Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/ufs/ext2fs Pull up revision 1.33 (requested by wrst...



details:   https://anonhg.NetBSD.org/src/rev/419f94092fdf
branches:  netbsd-1-5
changeset: 491189:419f94092fdf
user:      he <he%NetBSD.org@localhost>
date:      Fri Apr 06 00:03:33 2001 +0000

description:
Pull up revision 1.33 (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/ufs/ext2fs/ext2fs_vnops.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 0f6a89b155e9 -r 419f94092fdf sys/ufs/ext2fs/ext2fs_vnops.c
--- a/sys/ufs/ext2fs/ext2fs_vnops.c     Fri Apr 06 00:03:08 2001 +0000
+++ b/sys/ufs/ext2fs/ext2fs_vnops.c     Fri Apr 06 00:03:33 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs_vnops.c,v 1.26.4.1 2000/07/30 20:38:59 jdolecek Exp $   */
+/*     $NetBSD: ext2fs_vnops.c,v 1.26.4.2 2001/04/06 00:03:33 he Exp $ */
 
 /*
  * Copyright (c) 1997 Manuel Bouyer.
@@ -1287,8 +1287,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);
                        lockmgr(&nvp->v_lock, LK_EXCLUSIVE, &nvp->v_interlock);
                        /*



Home | Main Index | Thread Index | Old Index