Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs fix b_interlock lock/unlock mismatches.
details: https://anonhg.NetBSD.org/src/rev/3bb79182dd32
branches: trunk
changeset: 546372:3bb79182dd32
user: yamt <yamt%NetBSD.org@localhost>
date: Sun Apr 27 06:46:38 2003 +0000
description:
fix b_interlock lock/unlock mismatches.
diffstat:
sys/ufs/lfs/lfs_inode.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r da5406fce911 -r 3bb79182dd32 sys/ufs/lfs/lfs_inode.c
--- a/sys/ufs/lfs/lfs_inode.c Sun Apr 27 04:18:29 2003 +0000
+++ b/sys/ufs/lfs/lfs_inode.c Sun Apr 27 06:46:38 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_inode.c,v 1.74 2003/04/23 07:20:37 perseant Exp $ */
+/* $NetBSD: lfs_inode.c,v 1.75 2003/04/27 06:46: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_inode.c,v 1.74 2003/04/23 07:20:37 perseant Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_inode.c,v 1.75 2003/04/27 06:46:38 yamt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@@ -797,7 +797,7 @@
simple_lock(&bp->b_interlock);
if (bp->b_flags & B_BUSY) {
bp->b_flags |= B_WANTED;
- error = ltsleep(bp, slpflag | (PRIBIO + 1),
+ error = ltsleep(bp, slpflag | (PRIBIO + 1) | PNORELOCK,
"lfs_vtruncbuf", slptimeo, &bp->b_interlock);
if (error) {
splx(s);
@@ -823,7 +823,7 @@
simple_lock(&bp->b_interlock);
if (bp->b_flags & B_BUSY) {
bp->b_flags |= B_WANTED;
- error = ltsleep(bp, slpflag | (PRIBIO + 1),
+ error = ltsleep(bp, slpflag | (PRIBIO + 1) | PNORELOCK,
"lfs_vtruncbuf", slptimeo, &bp->b_interlock);
if (error) {
splx(s);
Home |
Main Index |
Thread Index |
Old Index