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

From
Sergey Senozhatsky <hidden>
Date
2017-01-13 03:52:56
Also in
linux-mm, lkml
Reply to
Sergey Senozhatsky, 2017-01-13
On (01/13/17 11:52), Sergey Senozhatsky wrote:
[..]
and we really don't want to cond_resched() when we are in panic.
that's why console_flush_on_panic() sets it to zero explicitly.

console_trylock() checks oops_in_progress, so re-taking the semaphore
when we are in

	panic()
	 console_flush_on_panic()
          console_unlock()
           console_trylock()

should be OK. as well as doing get_console_conditional_schedule() somewhere
in console driver code.
d'oh... no, this is false. console_flush_on_panic() is called after we
bust_spinlocks(0), BUT with local IRQs disabled. so console_trylock()
would still set console_may_schedule to 0.

	-ss
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