mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
The removal of a page from the free queue in vm_page_zero_idle was
imcomplete. Also set m->queue, in order to prevent vm_page_select_free from selecting the page being zeroed.
This commit is contained in:
parent
c6fe0cb207
commit
95f67de2e3
2 changed files with 4 additions and 2 deletions
|
|
@ -38,7 +38,7 @@
|
|||
*
|
||||
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
|
||||
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
|
||||
* $Id: vm_machdep.c,v 1.93 1997/12/27 02:28:28 peter Exp $
|
||||
* $Id: vm_machdep.c,v 1.94 1998/01/15 07:32:21 gibbs Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
|
|
@ -941,6 +941,7 @@ vm_page_zero_idle()
|
|||
if (m != NULL) {
|
||||
--(*vm_page_queues[m->queue].lcnt);
|
||||
TAILQ_REMOVE(vm_page_queues[m->queue].pl, m, pageq);
|
||||
m->queue = PQ_NONE;
|
||||
splx(s);
|
||||
#ifdef SMP
|
||||
rel_mplock();
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
*
|
||||
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
|
||||
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
|
||||
* $Id: vm_machdep.c,v 1.93 1997/12/27 02:28:28 peter Exp $
|
||||
* $Id: vm_machdep.c,v 1.94 1998/01/15 07:32:21 gibbs Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
|
|
@ -941,6 +941,7 @@ vm_page_zero_idle()
|
|||
if (m != NULL) {
|
||||
--(*vm_page_queues[m->queue].lcnt);
|
||||
TAILQ_REMOVE(vm_page_queues[m->queue].pl, m, pageq);
|
||||
m->queue = PQ_NONE;
|
||||
splx(s);
|
||||
#ifdef SMP
|
||||
rel_mplock();
|
||||
|
|
|
|||
Loading…
Reference in a new issue