From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796459750; b=dQHJWNJDu3yeemtA1M7zgBYVyJqxF3GxrMnLLUF4M/BZpclG/b0RcJScxd7hQNX/50pn +S3rM/k3nBQtkj6jgSA3IgOQc3TY6eGaqtWvULE8hehRvoMvNCU+chDVer7Q5keextSQ9 JdvSxTZH00FSXMEvmbRe++enqjogMIa2UzkSwA64vtOz65+ECINcI0QV+lKNNyzwW3y96 lQuEvYVut3HC6v/kj4NOhXzIcvCOObABYR4kgYE3FPxGPU5tZe1iuaMyHFd/Ndce8nOBG bXs+sWHr6H1RoK+7ZydAl/Y7rI9oo6SnrRj5eXIjrBkSc0XaMzHayqdnMsRSGHnGPOg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796459750; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=lC8NzTDh+FG1UHHIHFZPzhcUpYdMNurP1zQZVrT6y6Q=; b=Smtk519IbFpyXIa40m3+xexeFo+hb/G1ysb+5pauJBJhHEfz4q/+MbWFFM3+SdzQXXhe G3u9cP5ZEc7yN0R/cYxTbYUZ1hPeGCEogt+dycKd5IKfOBiCMIAfGDhYOroAifVHOZuG1 qxUJkrs64YqWeavDwM2Wv0KsuuJW8fcnSMfvIGPIukLnKhpRpJkTjYLGnsaMqtc7YL28q 2JEVSLDX90rBrQ8Pt78opE6z4d7Xp0zR5R8BELskoH1FIzNhTBvn5aDB+/l2FyWu8ETR3 iy8vl4nH9D1f+Pe/Pz1gN7cHb3eqV2S/x2oFOEW84RO9LgmsNKZMWm+cw9/bYASsXGg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=K9QjHYAt; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B878B606A32F for ; Sat, 5 Dec 2026 08:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=K9QjHYAt Received: by smtp.kernel.org (Postfix) with ESMTPSA id 573611F0092B; Sat, 5 Dec 2026 08:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796459750; bh=lC8NzTDh+FG1UHHIHFZPzhcUpYdMNurP1zQZVrT6y6Q=; h=Date:To:From:In-Reply-To:References:Subject; b=K9QjHYAtJlak2kHLVZd4FSbPQ53jmM3Tuh8AS/wfkTKXoH0SsBarjkQFpDn2Fyn6x 58fIMcbrCPYiNZSB9Q3v2DRyyIrfWDZCX0aZnxnR82/2FmRUcekWhv1wtm6xyry1jy v0FmRZ9V5lSnppdz43L72nBV3DY9IQqaKFuDTEjc= Date: Sat, 05 Dec 2026 00:35:49 -0800 To: mm-commits@vger.kernel.org,ziy@nvidia.com,vbabka@kernel.org, shuah@kernel.org,sayalip@linux.ibm.com,rppt@kernel.org,mhocko@suse.com, li.wang@linux.dev,liam@infradead.org,husong@kylinos.cn,david@kernel.org, almasrymina@google.com,lylin1023@gmail.com,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261205-hugetlb-charge-multi-cgroup-v1-1-e88105afc12a@gmail.com> References: <20261205-hugetlb-charge-multi-cgroup-v1-1-e88105afc12a@gmail.com> Subject: + selftests-mm-dont-wait-for-a-hugetlb-reservation-that-is-expected-to-fail.patch added to mm-new branch Message-Id: <20261205083550.573611F0092B@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The patch titled Subject: selftests/mm: don't wait for a hugetlb reservation that is expected to fail has been added to the -mm mm-new branch. Its filename is selftests-mm-dont-wait-for-a-hugetlb-reservation-that-is-expected-to-fail.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-mm-dont-wait-for-a-hugetlb-reservation-that-is-expected-to-fail.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. The mm-new branch of mm.git is not included in linux-next If a few days of testing in mm-new is successful, the patch will me moved into mm.git's mm-unstable branch, which is included in linux-next Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: Kurt Lin Subject: selftests/mm: don't wait for a hugetlb reservation that is expected to fail Date: Sat, 05 Dec 2026 01:31:57 +0800 Patch series "selftests/mm: run all hugetlb cgroup reservation tests". Song's "selftests/mm: restore hidden hugetlb reservation scenarios" was dropped from mm-unstable because it made the hugetlb category of the linux-mm CI time out [1]. The time goes into a 60 second wait in the cases that expect a reservation to fail. As there has been no follow-up, this series carries Song's patch (3/4, unchanged) behind fixes for that (1-2/4), and fixes the multiple cgroups test it had to leave skipped (4/4). That test failed only because of bugs in the script. Tested in a virtme-ng guest on mm-new: charge_reserved_hugetlb.sh -cgroup-v2 passes all 84 checks in about 62 seconds, and run_vmtests.sh -t hugetlb passes in 87 seconds. It also passes with KASAN and lockdep on an mm-new that includes David's "mm/hugetlb: various fixes (2)" v1. Not tested with cgroup v1 or other huge page sizes. Found and fixed with the help of an AI coding assistant. This patch (of 4): After a synchronous write, write_hugetlbfs_and_get_usage() waits for the reservation usage to reach the requested size, even when the reservation is expected to fail. That wait then times out after 60 seconds. The "more than reservation" and "more than cgroup limit" cases, hidden by a stray 'continue' today, take this path. When they were restored, the hugetlb category of the linux-mm CI hit its 300 second timeout after three such waits. Only wait when the reservation is expected to succeed. Link: https://lore.kernel.org/20261205-hugetlb-charge-multi-cgroup-v1-0-e88105afc12a@gmail.com Link: https://patch.msgid.link/20261205-hugetlb-charge-multi-cgroup-v1-1-e88105afc12a@gmail.com Link: https://lore.kernel.org/20260714021630.1063823-1-husong@kylinos.cn [1] Signed-off-by: Kurt Lin Signed-off-by: Andrew Morton Cc: David Hildenbrand Cc: Liam R. Howlett Cc: Vlastimil Babka Cc: Mike Rapoport Cc: Michal Hocko Cc: Shuah Khan Cc: Mina Almasry Cc: Sayali Patil Cc: Zi Yan Cc: Song Hu Cc: Li Wang tools/testing/selftests/mm/charge_reserved_hugetlb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/mm/charge_reserved_hugetlb.sh~selftests-mm-dont-wait-for-a-hugetlb-reservation-that-is-expected-to-fail +++ a/tools/testing/selftests/mm/charge_reserved_hugetlb.sh @@ -252,7 +252,7 @@ function write_hugetlbfs_and_get_usage() "$cgroup" "$path" "$method" "$private" "$reserve" local write_result=$? - if [[ "$reserve" != "-n" ]]; then + if [[ "$reserve" != "-n" ]] && [[ "$expect_failure" != 1 ]]; then wait_for_hugetlb_memory_to_get_reserved "$cgroup" "$size" fi fi _ Patches currently in -mm which might be from lylin1023@gmail.com are selftests-mm-dont-wait-for-a-hugetlb-reservation-that-is-expected-to-fail.patch selftests-mm-dont-use-killall-wait-in-charge_reserved_hugetlbsh.patch selftests-mm-fix-and-enable-the-multiple-cgroups-hugetlb-tests.patch