summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-02-27 09:13:52 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-02-27 09:13:52 +0000
commit6a2d51b33a207bd748dcd8430c89c5480ba6d200 (patch)
treebca94b174f7b387009c55fd7a3bcecc2e92936c1 /sys/kern
parentfbdfcb018aca37c86406d63e6cc9a57c64fe2bfd (diff)
art@ found a race in getnewbuf. bawrite can block so we need to restart
the whole buffer allocation process
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 950af98a639..deea7c7b733 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.31 2001/02/24 19:07:08 csapuntz Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.32 2001/02/27 09:13:51 csapuntz Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*-
@@ -804,7 +804,7 @@ start:
*/
SET(bp->b_flags, B_AGE);
bawrite(bp);
- goto start;
+ return (0);
}
/* disassociate us from our vnode, if we had one... */