Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm uvm_aio_aiodone_pages(): only call uvm_pageout_done(...
details: https://anonhg.NetBSD.org/src/rev/944b3469ede7
branches: trunk
changeset: 931010:944b3469ede7
user: ad <ad%NetBSD.org@localhost>
date: Sun Apr 19 21:53:38 2020 +0000
description:
uvm_aio_aiodone_pages(): only call uvm_pageout_done() if work was done for
the page daemon.
diffstat:
sys/uvm/uvm_pager.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r af3a7a95feb9 -r 944b3469ede7 sys/uvm/uvm_pager.c
--- a/sys/uvm/uvm_pager.c Sun Apr 19 21:37:00 2020 +0000
+++ b/sys/uvm/uvm_pager.c Sun Apr 19 21:53:38 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pager.c,v 1.124 2020/04/07 19:15:23 ad Exp $ */
+/* $NetBSD: uvm_pager.c,v 1.125 2020/04/19 21:53:38 ad Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pager.c,v 1.124 2020/04/07 19:15:23 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pager.c,v 1.125 2020/04/19 21:53:38 ad Exp $");
#include "opt_uvmhist.h"
#include "opt_readahead.h"
@@ -487,7 +487,9 @@
}
#endif /* defined(VMSWAP) */
}
- uvm_pageout_done(pageout_done);
+ if (pageout_done != 0) {
+ uvm_pageout_done(pageout_done);
+ }
if (!swap) {
uvm_page_unbusy(pgs, npages);
rw_exit(slock);
Home |
Main Index |
Thread Index |
Old Index