Messages in this thread Patch in this message | | | From | Peter Xu <> | Subject | [PATCH 1/3] fixup! mm: always initialise folio->_deferred_list | Date | Wed, 17 Apr 2024 17:18:34 -0400 |
| |
Current mm-unstable will hit this when running test_hugetlb_memcg. This fixes the crash for me.
Signed-off-by: Peter Xu <peterx@redhat.com> --- mm/memcontrol.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 1840ba4c355d..7703ced535a3 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -7529,6 +7529,7 @@ static void uncharge_folio(struct folio *folio, struct uncharge_gather *ug) VM_BUG_ON_FOLIO(folio_test_lru(folio), folio); VM_BUG_ON_FOLIO(folio_order(folio) > 1 && + !folio_test_hugetlb(folio) && !list_empty(&folio->_deferred_list), folio); /* -- 2.44.0
| |