diff options
author | 2020-10-05 01:56:17 +0000 | |
---|---|---|
committer | 2020-10-05 01:56:17 +0000 | |
commit | 64e0152d726e326ce4e82968b3bd05a01ad65ecd (patch) | |
tree | 165851fcb11aa30991340993d1292d479e3198e9 /sys/kern | |
parent | Recent changes for PROT_NONE pages to not count against resource limits, (diff) | |
download | wireguard-openbsd-64e0152d726e326ce4e82968b3bd05a01ad65ecd.tar.xz wireguard-openbsd-64e0152d726e326ce4e82968b3bd05a01ad65ecd.zip |
Fix write hang-up on file system on vnd.
ok beck@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_bio.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index a99f81956bf..c53b1b67ffe 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.203 2020/09/14 19:02:09 jasper Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.204 2020/10/05 01:56:17 asou Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /* @@ -949,6 +949,11 @@ brelse(struct buf *bp) CLR(bp->b_flags, B_WANTED); wakeup(bp); } + + if (bcstats.dmapages > targetpages) + (void) bufcache_recover_dmapages(0, + bcstats.dmapages - targetpages); + bufcache_adjust(); } /* Wake up syncer and cleaner processes waiting for buffers. */ |