Skip to content
Commit dbdeae0a authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Ryan Roberts
Browse files

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/367a14f7-340e-4b29-90ae-bc3fcefdd5f4@arm.com/


Fixes: f77171d2 (mm: allow non-hugetlb large folios to be batch processed)
Debugged-by: Ryan Roberts's avatarRyan Roberts <ryan.roberts@arm.com>
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: Ryan Roberts's avatarRyan Roberts <ryan.roberts@arm.com>
parent d7182786
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment