Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs init b_interlock.
details: https://anonhg.NetBSD.org/src/rev/42f8d8ba852d
branches: trunk
changeset: 543211:42f8d8ba852d
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Feb 19 12:18:59 2003 +0000
description:
init b_interlock.
diffstat:
sys/ufs/lfs/lfs_vfsops.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 553386c6d002 -r 42f8d8ba852d sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c Wed Feb 19 12:02:38 2003 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c Wed Feb 19 12:18:59 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_vfsops.c,v 1.92 2003/02/19 12:01:17 yamt Exp $ */
+/* $NetBSD: lfs_vfsops.c,v 1.93 2003/02/19 12:18:59 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_vfsops.c,v 1.92 2003/02/19 12:01:17 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.93 2003/02/19 12:18:59 yamt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@@ -1948,8 +1948,9 @@
bp = pool_get(&bufpool, PR_WAITOK);
UVMHIST_LOG(ubchist, "vp %p bp %p num now %d",
vp, bp, vp->v_numoutput, 0);
+ splx(s);
memset(bp, 0, sizeof(*bp));
- splx(s);
+ simple_lock_init(&bp->b_interlock);
bp->b_data = (char *)kva +
(vaddr_t)(offset - pg->offset);
bp->b_resid = bp->b_bcount = iobytes;
Home |
Main Index |
Thread Index |
Old Index