Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216781/?format=api
{ "id": 2216781, "url": "http://patchwork.ozlabs.org/api/patches/2216781/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1ac1cac332a692e8d2dd70922bb09c0582340143.1774591179.git.sayalip@linux.ibm.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<1ac1cac332a692e8d2dd70922bb09c0582340143.1774591179.git.sayalip@linux.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1ac1cac332a692e8d2dd70922bb09c0582340143.1774591179.git.sayalip@linux.ibm.com/", "date": "2026-03-27T07:15:58", "name": "[v3,04/13] selftest/mm: fix cgroup task placement and drop memory.current checks in hugetlb_reparenting_test.sh", "commit_ref": null, "pull_url": null, "state": "handled-elsewhere", "archived": false, "hash": "1622b688d60974e5e09e8f50126e2b251afda726", "submitter": { "id": 92656, "url": "http://patchwork.ozlabs.org/api/people/92656/?format=api", "name": "Sayali Patil", "email": "sayalip@linux.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1ac1cac332a692e8d2dd70922bb09c0582340143.1774591179.git.sayalip@linux.ibm.com/mbox/", "series": [ { "id": 497700, "url": "http://patchwork.ozlabs.org/api/series/497700/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497700", "date": "2026-03-27T07:15:54", "name": "selftests/mm: fix failures and robustness improvements", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/497700/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216781/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216781/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-18905-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=MeFWO7Zm;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-18905-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=148.163.158.5", "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com", "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=MeFWO7Zm;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com\n (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com;\n envelope-from=sayalip@linux.ibm.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhsRm05lbz1y1j\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 18:17:55 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fhsRX60Znz3fBb;\n\tFri, 27 Mar 2026 18:17:44 +1100 (AEDT)", "from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n [148.163.158.5])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fhsRW6kFgz3f8M\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 27 Mar 2026 18:17:43 +1100 (AEDT)", "from pps.filterd (m0356516.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 62QNaHvu3599991;\n\tFri, 27 Mar 2026 07:17:34 GMT", "from ppma13.dal12v.mail.ibm.com\n (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4d1ktv7us2-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 27 Mar 2026 07:17:33 +0000 (GMT)", "from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1])\n\tby ppma13.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 62R703lh012185;\n\tFri, 27 Mar 2026 07:17:32 GMT", "from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229])\n\tby ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 4d27vkeaa4-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 27 Mar 2026 07:17:32 +0000", "from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com\n [10.20.54.100])\n\tby smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 62R7HUEb42729946\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tFri, 27 Mar 2026 07:17:30 GMT", "from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 7D10D2004D;\n\tFri, 27 Mar 2026 07:17:30 +0000 (GMT)", "from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 4203720043;\n\tFri, 27 Mar 2026 07:17:27 +0000 (GMT)", "from li-3f69264c-2ce6-11b2-a85c-c3f414d24014.ibm.com.com (unknown\n [9.124.208.5])\n\tby smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP;\n\tFri, 27 Mar 2026 07:17:27 +0000 (GMT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774595864;\n\tcv=none;\n b=Igcd7gj0PSaaC39r39jH2od4wii9xOOSg1Woj6RRpZAtSuXpBlsPOWaXFwzlUI1NeJf4cX9uTJGBLX6pTP2xrXahxmbYkMrdj6rwzhZtdEEuZOfrsh8ZeVZmUraiGRuD2v62s/mazeYdOmU4L+aPjWamFZOYQXklhGkS9R4ZwmAQqQ7WVXEOn7gncy4MxWwbR7v6ETrNfidy1ZHaiIQ9Dmg+ZNJURPqhxxN2Ba8HJKnCdY0m2Du/mNcMGqbfidvov7to21ERjHQQwLuXgG5ZCLkefMCS44cmeCyBMFJetuTOAuYwPOfHbByCtSc1mEGQvXYZ/Y8toXCNofRQn1yyQA==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774595864; c=relaxed/relaxed;\n\tbh=fRRRjYlWxAolMESkMa1LtUUUU2Rcp6x5tvyIVsuFgbE=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=CwFO9GIh+hPX0onxwGUjmEiu/PfGZa1TQii2rK2d+U6Ooue/gT5uEthqkEdJJwc9+NGB+0cR+NyNhRYrH9A6qv6Jyqwg29WfxOdYEfERJvgEyNcs6IUM2duw3g0KPURBs24dIaACuAlTWU/+J7+4Qp3ShXebC/hAcNCj7If/HkwYUinoZM5uZNn0CXHnouK7wx3WNKPkZmb8RGth3ucfKPMI09EHuqLBxdDpXpEuTxuyADWbCVRaXGhJiRQIkOvQY911CcJJre/4YDA0xjZ3MQ0qFWmuGk1Hg5ze1nXH/nZK0wcyuCCp+BqUwlQCDPY8EWKZwf5AD6WFxD/ca7FyTg==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=MeFWO7Zm; dkim-atps=neutral;\n spf=pass (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com;\n envelope-from=sayalip@linux.ibm.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=linux.ibm.com", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n\t:content-transfer-encoding:date:from:in-reply-to:message-id\n\t:mime-version:references:subject:to; s=pp1; bh=fRRRjYlWxAolMESkM\n\ta1LtUUUU2Rcp6x5tvyIVsuFgbE=; b=MeFWO7ZmasnjfsQ9JZC+ealf6rAYQGsCt\n\tjLxSQF0Eb1NY1EVl1pEpk0ED6/qpwO36/ZMi9wjrrUclGD4izc6YldukJKK2+Pfw\n\tcFXnMb9rmJTYB2+UZ9rDpAg8oNFzSIWY6m1FHLgp1V0p212/38fPOYi8OTB0NEhx\n\tI0XgxulgS9n+qpBZGwtNxUgP+4xYFmAYEgNTIu08HknvvPR/JL76lF64Eh9tq+n1\n\t3YSlLuGmKopXiSiy5z9IJxHZYKD6JJoY7Lzyh2kdaGk7fZu1ul7R0nBlwt787Boo\n\txdED2Zs2rAdXXxkOqaxTqX60wplI+SGLO1L5hktLkuC64iNh2vUgA==", "From": "Sayali Patil <sayalip@linux.ibm.com>", "To": "Andrew Morton <akpm@linux-foundation.org>, Shuah Khan <shuah@kernel.org>,\n linux-mm@kvack.org, linux-kernel@vger.kernel.org,\n linux-kselftest@vger.kernel.org,\n Ritesh Harjani <ritesh.list@gmail.com>", "Cc": "David Hildenbrand <david@kernel.org>, Zi Yan <ziy@nvidia.com>,\n Michal Hocko <mhocko@kernel.org>, Oscar Salvador <osalvador@suse.de>,\n Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,\n Dev Jain <dev.jain@arm.com>, Liam.Howlett@oracle.com,\n linuxppc-dev@lists.ozlabs.org, Sayali Patil <sayalip@linux.ibm.com>", "Subject": "[PATCH v3 04/13] selftest/mm: fix cgroup task placement and drop\n memory.current checks in hugetlb_reparenting_test.sh", "Date": "Fri, 27 Mar 2026 12:45:58 +0530", "Message-ID": "\n <1ac1cac332a692e8d2dd70922bb09c0582340143.1774591179.git.sayalip@linux.ibm.com>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<cover.1774591179.git.sayalip@linux.ibm.com>", "References": "<cover.1774591179.git.sayalip@linux.ibm.com>", "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org", "List-Id": "<linuxppc-dev.lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>", "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n <https://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-TM-AS-GCONF": "00", "X-Proofpoint-Reinject": "loops=2 maxloops=12", "X-Proofpoint-ORIG-GUID": "nClAz5ZwK--x8O9PZsjdr8Q-McgxQ6Fp", "X-Authority-Analysis": "v=2.4 cv=aMr9aL9m c=1 sm=1 tr=0 ts=69c62f0d cx=c_pps\n a=AfN7/Ok6k8XGzOShvHwTGQ==:117 a=AfN7/Ok6k8XGzOShvHwTGQ==:17\n a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=Y2IxJ9c9Rs8Kov3niI8_:22 a=VnNF1IyMAAAA:8 a=VzA434MTnXPm7y74YIgA:9", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMzI3MDA0OSBTYWx0ZWRfX+g1VmU4Asptm\n ANGogRNCkIBLPD3mUxT7GW3ywiXj58+b1eTDUb7FthFEpZgPNfc+AQhpol+hc/9J/B48Bq5UZb2\n 740knBX9CusAkQGHpmu06rDOAZcqdQiulVEnUaN2Yic5CEEM/GDUg0YF260s8fDJvhi+wmHT0Oq\n Ws5szmbYeeRI0y9CWCwsKr7NaSmHoHh3mlUbj2xBYtBqYa3sv6UtlNxSdE/a/LAGqu6pM9TsF/C\n jBvN09Fcl/8sYWil9QFNv8+oGBPk486GDaFdsOFBHlXaq2s0sQZhmpZV4Z961HNvND6ejTcWA7z\n Nmi0+MqkiSak6+ROVsme10ab4frCQNPsXoe3ut4VUUpVPM53pclPzNomXrym0DbnzA+FW6pZqOE\n mJil+RdcI9w39xXkFke+CJDFyDFStGw7BR/5sCrbwianQjAFkeaC977yjGJSeJ9YbdjFCTPprvb\n Gzawrg2bQ4uihEP5lIw==", "X-Proofpoint-GUID": "aWkKOPYTflOioW1srNbD4X76iJFqi4P5", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-03-26_04,2026-03-26_01,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n spamscore=0 lowpriorityscore=0 adultscore=0 impostorscore=0 malwarescore=0\n suspectscore=0 phishscore=0 priorityscore=1501 bulkscore=0 clxscore=1015\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603270049", "X-Spam-Status": "No, score=-0.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tRCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,\n\tSPF_PASS autolearn=disabled version=4.0.1 OzLabs 8", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "Launch write_to_hugetlbfs as a separate process and move only its PID\ninto the target cgroup before waiting for completion. This avoids moving\nthe test shell itself, prevents unintended charging to the shell, and\nensures hugetlb and memcg accounting is attributed only to the intended\nworkload.\n\nAdd a short delay before the hugetlb allocation to avoid a race where\nmemory may be charged before the task migration takes effect, which\ncan lead to incorrect accounting and intermittent test failures.\n\nThe test currently validates both hugetlb usage and memory.current.\nHowever, memory.current includes internal memcg allocations and\nper-CPU batched accounting (MEMCG_CHARGE_BATCH), which are not\nsynchronized and can vary across systems, leading to\nnon-deterministic results.\n\nSince hugetlb memory is accounted via hugetlb.<size>.current,\nmemory.current is not a reliable indicator here. Drop memory.current\nchecks and rely only on hugetlb controller statistics for stable\nand accurate validation.\n\nFixes: 29750f71a9b4 (\"hugetlb_cgroup: add hugetlb_cgroup reservation tests\")\nSigned-off-by: Sayali Patil <sayalip@linux.ibm.com>\n---\n .../selftests/mm/hugetlb_reparenting_test.sh | 42 ++++++++-----------\n .../testing/selftests/mm/write_to_hugetlbfs.c | 5 ++-\n 2 files changed, 22 insertions(+), 25 deletions(-)", "diff": "diff --git a/tools/testing/selftests/mm/hugetlb_reparenting_test.sh b/tools/testing/selftests/mm/hugetlb_reparenting_test.sh\nindex 073a71fa36b4..1e87ac67d43e 100755\n--- a/tools/testing/selftests/mm/hugetlb_reparenting_test.sh\n+++ b/tools/testing/selftests/mm/hugetlb_reparenting_test.sh\n@@ -104,22 +104,17 @@ function assert_with_retry() {\n }\n \n function assert_state() {\n- local expected_a=\"$1\"\n- local expected_a_hugetlb=\"$2\"\n- local expected_b=\"\"\n+ local expected_a_hugetlb=\"$1\"\n local expected_b_hugetlb=\"\"\n \n- if [ ! -z ${3:-} ] && [ ! -z ${4:-} ]; then\n- expected_b=\"$3\"\n- expected_b_hugetlb=\"$4\"\n+ if [ ! -z ${2:-} ]; then\n+ expected_b_hugetlb=\"$2\"\n fi\n \n- assert_with_retry \"$CGROUP_ROOT/a/memory.$usage_file\" \"$expected_a\"\n assert_with_retry \\\n \t \"$CGROUP_ROOT/a/hugetlb.${MB_DISPLAY}${UNIT}.$usage_file\" \"$expected_a_hugetlb\"\n \n- if [[ -n \"$expected_b\" && -n \"$expected_b_hugetlb\" ]]; then\n- assert_with_retry \"$CGROUP_ROOT/a/b/memory.$usage_file\" \"$expected_b\"\n+ if [[ -n \"$expected_b_hugetlb\" ]]; then\n assert_with_retry \\\n \t \"$CGROUP_ROOT/a/b/hugetlb.${MB_DISPLAY}${UNIT}.$usage_file\" \"$expected_b_hugetlb\"\n fi\n@@ -153,18 +148,17 @@ write_hugetlbfs() {\n local size=\"$3\"\n \n if [[ $cgroup2 ]]; then\n- echo $$ >$CGROUP_ROOT/$cgroup/cgroup.procs\n+ cg_file=\"$CGROUP_ROOT/$cgroup/cgroup.procs\"\n else\n echo 0 >$CGROUP_ROOT/$cgroup/cpuset.mems\n echo 0 >$CGROUP_ROOT/$cgroup/cpuset.cpus\n- echo $$ >\"$CGROUP_ROOT/$cgroup/tasks\"\n- fi\n- ./write_to_hugetlbfs -p \"$path\" -s \"$size\" -m 0 -o\n- if [[ $cgroup2 ]]; then\n- echo $$ >$CGROUP_ROOT/cgroup.procs\n- else\n- echo $$ >\"$CGROUP_ROOT/tasks\"\n+ cg_file=\"$CGROUP_ROOT/$cgroup/tasks\"\n fi\n+\n+ # Spawn write_to_hugetlbfs in a separate task to ensure correct cgroup accounting\n+ ./write_to_hugetlbfs -p \"$path\" -s \"$size\" -m 0 -o -d & pid=$!\n+ echo \"$pid\" > \"$cg_file\"\n+ wait \"$pid\"\n echo\n }\n \n@@ -202,21 +196,21 @@ if [[ ! $cgroup2 ]]; then\n write_hugetlbfs a \"$MNT\"/test $size\n \n echo Assert memory charged correctly for parent use.\n- assert_state 0 $size 0 0\n+ assert_state $size 0\n \n write_hugetlbfs a/b \"$MNT\"/test2 $size\n \n echo Assert memory charged correctly for child use.\n- assert_state 0 $(($size * 2)) 0 $size\n+ assert_state $(($size * 2)) $size\n \n rmdir \"$CGROUP_ROOT\"/a/b\n echo Assert memory reparent correctly.\n- assert_state 0 $(($size * 2))\n+ assert_state $(($size * 2))\n \n rm -rf \"$MNT\"/*\n umount \"$MNT\"\n echo Assert memory uncharged correctly.\n- assert_state 0 0\n+ assert_state 0\n \n cleanup\n fi\n@@ -230,16 +224,16 @@ echo write\n write_hugetlbfs a/b \"$MNT\"/test2 $size\n \n echo Assert memory charged correctly for child only use.\n-assert_state 0 $(($size)) 0 $size\n+assert_state $(($size)) $size\n \n rmdir \"$CGROUP_ROOT\"/a/b\n echo Assert memory reparent correctly.\n-assert_state 0 $size\n+assert_state $size\n \n rm -rf \"$MNT\"/*\n umount \"$MNT\"\n echo Assert memory uncharged correctly.\n-assert_state 0 0\n+assert_state 0\n \n cleanup\n \ndiff --git a/tools/testing/selftests/mm/write_to_hugetlbfs.c b/tools/testing/selftests/mm/write_to_hugetlbfs.c\nindex ecb5f7619960..6b01b0485bd0 100644\n--- a/tools/testing/selftests/mm/write_to_hugetlbfs.c\n+++ b/tools/testing/selftests/mm/write_to_hugetlbfs.c\n@@ -83,7 +83,7 @@ int main(int argc, char **argv)\n \tsetvbuf(stdout, NULL, _IONBF, 0);\n \tself = argv[0];\n \n-\twhile ((c = getopt(argc, argv, \"s:p:m:owlrn\")) != -1) {\n+\twhile ((c = getopt(argc, argv, \"s:p:m:owlrnd\")) != -1) {\n \t\tswitch (c) {\n \t\tcase 's':\n \t\t\tif (sscanf(optarg, \"%zu\", &size) != 1) {\n@@ -118,6 +118,9 @@ int main(int argc, char **argv)\n \t\tcase 'n':\n \t\t\treserve = 0;\n \t\t\tbreak;\n+\t\tcase 'd':\n+\t\t\tsleep(1);\n+\t\t\tbreak;\n \t\tdefault:\n \t\t\terrno = EINVAL;\n \t\t\tperror(\"Invalid arg\");\n", "prefixes": [ "v3", "04/13" ] }