Re: [PATCH] mm/page_alloc: Wait for oom_lock before retrying.

From
Petr Mladek <pmladek@suse.com>
Date
2017-01-13 12:15:41
Also in
linux-mm, lkml
Reply to
Sergey Senozhatsky, 2017-01-13
On Fri 2017-01-13 20:50:24, Sergey Senozhatsky wrote:
On (01/13/17 12:03), Petr Mladek wrote:
[..]
quoted
quoted
why can't we?
Because it would newer call cond_resched() in non-preemptive kernel
with CONFIG_PREEMPT_COUNT disabled. IMHO, we want to call it,
for example, when we scroll the entire screen from tty_operations.

Or do I miss anything?
so... basically. it has never called cond_resched() there. right?
why is this suddenly a problem now?
But it called cond_resched() when the very same code was called
from tty operations under console_lock() that forced
console_may_schedule = 1;

It will never call cond_resched() from the tty operations
when CONFIG_PREEMPT_COUNT is disabled and we try to detect
the preemption automatically.

Best Regards,
Petr
Thread (11 messages) 11 messages, 3 authors, last reply 2017-01-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help