summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-12-07 11:12:03 +0000
committerkib <kib@FreeBSD.org>2015-12-07 11:12:03 +0000
commit208e7b92ca97cec7c94777e3935d65b7f13aed71 (patch)
tree4f2b9a871bd558b3cd8084ebd65a4670e924c82d
parent7925a0bf473342c5dcef9c9582627fbd9197ccd9 (diff)
downloadFreeBSD-src-208e7b92ca97cec7c94777e3935d65b7f13aed71.zip
FreeBSD-src-208e7b92ca97cec7c94777e3935d65b7f13aed71.tar.gz
MFC r290915:
Do not skip a process which has inhibited thread due to the swap-out, in the OOM selection loop.
-rw-r--r--sys/vm/vm_pageout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 2cc738d..6d73883 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -1570,7 +1570,8 @@ vm_pageout_oom(int shortage)
if (!TD_ON_RUNQ(td) &&
!TD_IS_RUNNING(td) &&
!TD_IS_SLEEPING(td) &&
- !TD_IS_SUSPENDED(td)) {
+ !TD_IS_SUSPENDED(td) &&
+ !TD_IS_SWAPPED(td)) {
thread_unlock(td);
breakout = 1;
break;
OpenPOWER on IntegriCloud