Re: [PATCH] mm/vmscan.c: fix potential deadlock in reclaim_pages()

From
Andrew Morton <akpm@linux-foundation.org>
Date
2021-06-14 22:10:34
Reply to
Yu Zhao, 2021-06-14
On Mon, 14 Jun 2021 13:47:27 -0600 Yu Zhao [off-list ref] wrote:
Use memalloc_noreclaim_save()/memalloc_noreclaim_restore() in
reclaim_pages() to prevent the page reclaim from going into the block
I/O layer recursively and deadlock.
Well.  Deadlocking the kernel is considered a bad thing ;)

From the lack of a cc:stable I'm assuming that this is a theoretical
from-code-inspection thing and that such a deadlock has not been
observed?

If not, why do we think that is the case?  What is saving us?

(In other words, more detailed changelogging, please!)
Thread (3 messages) 3 messages, 2 authors, last reply 2021-06-22
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