]> Git Repo - linux.git/commit - mm/swap.c
mm: remove folio from deferred split list before uncharging it
authorMatthew Wilcox (Oracle) <[email protected]>
Mon, 11 Mar 2024 19:18:34 +0000 (19:18 +0000)
committerAndrew Morton <[email protected]>
Tue, 12 Mar 2024 20:07:16 +0000 (13:07 -0700)
commit47932e7048df9156e96133ee90fb3e9df68dbd15
treeebba369496d523e16dc182d9167a1d8bd623687b
parent58f327f2ce80f9c7b4a70e9cf017ae8810d44a20
mm: remove folio from deferred split list before uncharging it

When freeing a large folio, we must remove it from the deferred split list
before we uncharge it as each memcg has its own deferred split list (with
associated lock) and removing a folio from the deferred split list while
holding the wrong lock will corrupt that list and cause various related
problems.

Link: https://lore.kernel.org/linux-mm/[email protected]/
Link: https://lkml.kernel.org/r/[email protected]
Fixes: f77171d241e3 (mm: allow non-hugetlb large folios to be batch processed)
Fixes: 29f3843026cf (mm: free folios directly in move_folios_to_lru())
Fixes: bc2ff4cbc329 (mm: free folios in a batch in shrink_folio_list())
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Debugged-by: Ryan Roberts <[email protected]>
Tested-by: Ryan Roberts <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
mm/swap.c
mm/vmscan.c
This page took 0.055363 seconds and 4 git commands to generate.