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 <ryan.roberts@arm.com> Signed-off-by:
Matthew Wilcox (Oracle) <willy@infradead.org> Tested-by:
Ryan Roberts <ryan.roberts@arm.com>
Loading
Please register or sign in to comment