Module Name: src
Committed By: ad
Date: Sun Dec 8 19:49:25 UTC 2019
Modified Files:
src/sys/kern: vfs_bio.c
Log Message:
Adjustment to previous: if we're going to toss the buffer, then wake
everybody.
To generate a diff of this commit:
cvs rdiff -u -r1.280 -r1.281 src/sys/kern/vfs_bio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/vfs_bio.c
diff -u src/sys/kern/vfs_bio.c:1.280 src/sys/kern/vfs_bio.c:1.281
--- src/sys/kern/vfs_bio.c:1.280 Sun Dec 8 19:26:05 2019
+++ src/sys/kern/vfs_bio.c Sun Dec 8 19:49:25 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_bio.c,v 1.280 2019/12/08 19:26:05 ad Exp $ */
+/* $NetBSD: vfs_bio.c,v 1.281 2019/12/08 19:49:25 ad Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009, 2019 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.280 2019/12/08 19:26:05 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.281 2019/12/08 19:49:25 ad Exp $");
#ifdef _KERNEL_OPT
#include "opt_bufcache.h"
@@ -1107,7 +1107,8 @@ brelsel(buf_t *bp, int set)
KASSERT(bp->b_objlock == &buffer_lock);
mutex_exit(bp->b_objlock);
}
-
+ /* We want to dispose of the buffer, so wake everybody. */
+ cv_broadcast(&bp->b_busy);
if (bp->b_bufsize <= 0)
/* no data */
goto already_queued;