Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Adjustment to previous: if we're going to toss the ...



details:   https://anonhg.NetBSD.org/src/rev/8b3d0a88d942
branches:  trunk
changeset: 465997:8b3d0a88d942
user:      ad <ad%NetBSD.org@localhost>
date:      Sun Dec 08 19:49:25 2019 +0000

description:
Adjustment to previous: if we're going to toss the buffer, then wake
everybody.

diffstat:

 sys/kern/vfs_bio.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 608859097a6b -r 8b3d0a88d942 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Sun Dec 08 19:26:05 2019 +0000
+++ b/sys/kern/vfs_bio.c        Sun Dec 08 19:49:25 2019 +0000
@@ -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 @@
                        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;



Home | Main Index | Thread Index | Old Index