Module Name: src Committed By: ad Date: Sun Apr 19 21:53:38 UTC 2020
Modified Files: src/sys/uvm: uvm_pager.c Log Message: uvm_aio_aiodone_pages(): only call uvm_pageout_done() if work was done for the page daemon. To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125 src/sys/uvm/uvm_pager.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/uvm/uvm_pager.c diff -u src/sys/uvm/uvm_pager.c:1.124 src/sys/uvm/uvm_pager.c:1.125 --- src/sys/uvm/uvm_pager.c:1.124 Tue Apr 7 19:15:23 2020 +++ src/sys/uvm/uvm_pager.c Sun Apr 19 21:53:38 2020 @@ -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 @@ uvm_aio_aiodone_pages(struct vm_page **p } #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);