Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs acquire v_interlock before calling VOP_PUTPAGES.
details: https://anonhg.NetBSD.org/src/rev/553386c6d002
branches: trunk
changeset: 543210:553386c6d002
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Feb 19 12:02:38 2003 +0000
description:
acquire v_interlock before calling VOP_PUTPAGES.
diffstat:
sys/ufs/lfs/lfs_segment.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 0ba727e44a20 -r 553386c6d002 sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Wed Feb 19 12:01:37 2003 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Wed Feb 19 12:02:38 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_segment.c,v 1.101 2003/02/17 23:48:19 perseant Exp $ */
+/* $NetBSD: lfs_segment.c,v 1.102 2003/02/19 12:02:38 yamt Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.101 2003/02/17 23:48:19 perseant Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.102 2003/02/19 12:02:38 yamt Exp $");
#define ivndebug(vp,str) printf("ino %d: %s\n",VTOI(vp)->i_number,(str))
@@ -797,6 +797,7 @@
* everything we've got.
*/
if (!IS_FLUSHING(fs, vp)) {
+ simple_lock(&vp->v_interlock);
VOP_PUTPAGES(vp, 0, 0,
PGO_CLEANIT | PGO_ALLPAGES | PGO_LOCKED |
PGO_BUSYFAIL);
Home |
Main Index |
Thread Index |
Old Index