Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern In getnewbuf(), release the buffer queue lock befor...
details: https://anonhg.NetBSD.org/src/rev/8bd0d38ad675
branches: trunk
changeset: 542767:8bd0d38ad675
user: pk <pk%NetBSD.org@localhost>
date: Thu Feb 06 11:22:35 2003 +0000
description:
In getnewbuf(), release the buffer queue lock before calling bawrite() and
re-acquire it afterward.
diffstat:
sys/kern/vfs_bio.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 2321a83f0d0a -r 8bd0d38ad675 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c Thu Feb 06 09:55:47 2003 +0000
+++ b/sys/kern/vfs_bio.c Thu Feb 06 11:22:35 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_bio.c,v 1.88 2003/02/06 09:46:46 pk Exp $ */
+/* $NetBSD: vfs_bio.c,v 1.89 2003/02/06 11:22:35 pk Exp $ */
/*-
* Copyright (c) 1994 Christopher G. Demetriou
@@ -51,7 +51,7 @@
#include "opt_softdep.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.88 2003/02/06 09:46:46 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.89 2003/02/06 11:22:35 pk Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -879,7 +879,9 @@
*/
SET(bp->b_flags, B_AGE);
simple_unlock(&bp->b_interlock);
+ simple_unlock(&bqueue_slock);
bawrite(bp);
+ simple_lock(&bqueue_slock);
return (NULL);
}
Home |
Main Index |
Thread Index |
Old Index