Don't forcibly kill processes that are locked in-core via PHOLD - it was
just checking P_NOSWAP before.
This commit is contained in:
parent
b77f8b7ba6
commit
100f4abd46
@ -65,7 +65,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: vm_pageout.c,v 1.138 1999/02/19 19:14:48 luoqi Exp $
|
||||
* $Id: vm_pageout.c,v 1.139 1999/03/12 00:44:02 julian Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1144,7 +1144,8 @@ vm_pageout_scan()
|
||||
/*
|
||||
* if this is a system process, skip it
|
||||
*/
|
||||
if ((p->p_flag & (P_SYSTEM|P_NOSWAP)) || (p->p_pid == 1) ||
|
||||
if ((p->p_flag & P_SYSTEM) || (p->p_lock > 0) ||
|
||||
(p->p_pid == 1) ||
|
||||
((p->p_pid < 48) && (vm_swap_size != 0))) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user