diff options
author | asou <asou@cvs.openbsd.org> | 2020-10-05 01:56:18 +0000 |
---|---|---|
committer | asou <asou@cvs.openbsd.org> | 2020-10-05 01:56:18 +0000 |
commit | 4444c40a9c9c4e6d187a2f8beb90b3b408864e32 (patch) | |
tree | 075f673d59815450fca814efb0edb1df23611210 /sys | |
parent | 27565d2ee9fad007054d95cb941715b417b637b5 (diff) |
Fix write hang-up on file system on vnd.
ok beck@
Diffstat (limited to 'sys')
-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. */ |