Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Recognize that we hold the v_interlock when relo...



details:   https://anonhg.NetBSD.org/src/rev/e9b165a2d8f8
branches:  trunk
changeset: 580525:e9b165a2d8f8
user:      perseant <perseant%NetBSD.org@localhost>
date:      Wed Apr 27 20:35:10 2005 +0000

description:
Recognize that we hold the v_interlock when relocking after a flush in
lfs_putpages.

diffstat:

 sys/ufs/lfs/lfs_vnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ec89736f8e05 -r e9b165a2d8f8 sys/ufs/lfs/lfs_vnops.c
--- a/sys/ufs/lfs/lfs_vnops.c   Wed Apr 27 20:32:41 2005 +0000
+++ b/sys/ufs/lfs/lfs_vnops.c   Wed Apr 27 20:35:10 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vnops.c,v 1.149 2005/04/25 06:28:51 skrll Exp $    */
+/*     $NetBSD: lfs_vnops.c,v 1.150 2005/04/27 20:35:10 perseant Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.149 2005/04/25 06:28:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.150 2005/04/27 20:35:10 perseant Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1812,7 +1812,7 @@
 
                simple_lock(&vp->v_interlock);
                if (locked)
-                       VOP_LOCK(vp, LK_EXCLUSIVE);
+                       VOP_LOCK(vp, LK_EXCLUSIVE | LK_INTERLOCK);
                lfs_writer_leave(fs);
 
                /* XXX the flush should have taken care of this one too! */



Home | Main Index | Thread Index | Old Index