[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240417211836.2742593-2-peterx@redhat.com>
Date: Wed, 17 Apr 2024 17:18:34 -0400
From: Peter Xu <peterx@...hat.com>
To: linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Cc: peterx@...hat.com,
David Hildenbrand <david@...hat.com>,
Mina Almasry <almasrymina@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Muchun Song <muchun.song@...ux.dev>,
David Rientjes <rientjes@...gle.com>
Subject: [PATCH 1/3] fixup! mm: always initialise folio->_deferred_list
Current mm-unstable will hit this when running test_hugetlb_memcg. This
fixes the crash for me.
Signed-off-by: Peter Xu <peterx@...hat.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
Powered by blists - more mailing lists