Message ID | 20230717131507.32420-4-ilpo.jarvinen@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1106502vqt; Mon, 17 Jul 2023 06:19:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlEFEh+wGeDDmP87jtgtV3Kl9SAA9xQWCNX9mVezDbPa0daKmoarWoU80x0IwLnpOxIDDXaB X-Received: by 2002:aa7:cc03:0:b0:521:9e79:28f4 with SMTP id q3-20020aa7cc03000000b005219e7928f4mr312716edt.12.1689599958380; Mon, 17 Jul 2023 06:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689599958; cv=none; d=google.com; s=arc-20160816; b=oJYHyhq9bXHtVadWc8U127SgHw4jQdhyOaq0q/Tb1NcqD7O+Q3G67EGxTpSyqxtuzC /Ujr7KpUZyvl7x8lDUJA1QgYXhWmZSdVoMS3e9u8DRtzQtivT0cuV7N0IKejMtjUZLv3 8SKu/+JKlPCdVRF1ZzVI4AWb9bhTd7dEI/xIdDkpdX28fzSfMARuFSnpDHVmS3qb+vew f/9mu1Zl51qdcEOEIfx6hGuq62qhHgRW5fvSXyuBppBgY1RT9amxie9dWCrvXLhr98nI n0yiZ5y0AgufnJET09zl2jq7rM23afg4igZIp+kwDbSacht2QNRiD7kFxERlpknRQIL0 L+ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tisjX8UZnL0Bki/PrpmFrPL0tkJ24Y0N3cG5OeC23xk=; fh=3KFcc/njgTGG7iglX91HYefIeot+DbOGCGLvQiyjv5M=; b=QJURYuqJ4WEtux5+30FmuJu8RWdYl2/cpGauuOlcV7svfBLF3HMWsUyJgrgr3vadNL hmEZ+GKapO3pTVj/xLlVU3EeMZrH8v2jZ15XOd+EdsvoiRg1Fx5WijdCuWWjZNyC6cmb kOaJXscUFgqv3qgiiPR4MtJRJexS5InG8bRJOyubWBS8hCeG+BmOME51b54L+xZwmf0a cA+M0VhFfNhubXWx/xqxpwcIYCMOLTRq8ucSmDpxlNgwRcInhBowYLN0X7KrYtKuZsNq D8Vh6g8Osu5B1bg3dknGPMRZFTXdnsgiyKLoeaC+BVtu0YyzFNztBGDFvgcrcIThDM2e CixQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SWEJwu+0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020aa7c1c8000000b0051e3d143815si5753094edp.560.2023.07.17.06.18.52; Mon, 17 Jul 2023 06:19:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SWEJwu+0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231552AbjGQNPy (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Mon, 17 Jul 2023 09:15:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231126AbjGQNPl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Jul 2023 09:15:41 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42CF794; Mon, 17 Jul 2023 06:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689599730; x=1721135730; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4NHwxeGZmRaqtiPuIGz3C8d+Am2s2/WThr8AS9rsrtY=; b=SWEJwu+0lzgiGqZbmXiqyqgQIxNKyOj13PXBh+yWQWX3fhWkBZajB/ni fhk4qeD3r6Ozs4CZ7U/CmjMGJu38UfJdECFmGZvfltJ2/NKxUUllY3jKO XtQk0fBJIA8aa2xBCqXA530+d4rO9RfzTOXWVgaVqAXUxTK/oQ8cMp7LX 6lA8X1orUOw0jwdDwGJbyzVGhR8ENDr+gfL/VH+DmnZha1bQfqir7JpC6 qwMX4sGCcDsa2ECiJPgPun8HHu13bwqrC1ZbJiuUTDNVwpRDI5Qfoaoed 2ovkkWfUmMsMd4aChkPgUQkXarXuFxm8SjHOtFqtnGkY/P8Wp77eetBZB g==; X-IronPort-AV: E=McAfee;i="6600,9927,10774"; a="368568843" X-IronPort-AV: E=Sophos;i="6.01,211,1684825200"; d="scan'208";a="368568843" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2023 06:15:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10774"; a="793246727" X-IronPort-AV: E=Sophos;i="6.01,211,1684825200"; d="scan'208";a="793246727" Received: from dkravtso-mobl1.ccr.corp.intel.com (HELO ijarvine-mobl2.ger.corp.intel.com) ([10.252.45.233]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2023 06:15:27 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: linux-kselftest@vger.kernel.org, Reinette Chatre <reinette.chatre@intel.com>, Shuah Khan <shuah@kernel.org>, Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>, Fenghua Yu <fenghua.yu@intel.com>, Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>, Babu Moger <babu.moger@amd.com>, Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH v5 03/19] selftests/resctrl: Unmount resctrl FS if child fails to run benchmark Date: Mon, 17 Jul 2023 16:14:51 +0300 Message-Id: <20230717131507.32420-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230717131507.32420-1-ilpo.jarvinen@linux.intel.com> References: <20230717131507.32420-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771673966037570315 X-GMAIL-MSGID: 1771673966037570315 |
Series |
selftests/resctrl: Fixes and cleanups
|
|
Commit Message
Ilpo Järvinen
July 17, 2023, 1:14 p.m. UTC
A child calls PARENT_EXIT() when it fails to run a benchmark to kill the parent process. PARENT_EXIT() lacks unmount for the resctrl FS and the parent won't be there to unmount it either after it gets killed. Add the resctrl FS unmount also to PARENT_EXIT(). Fixes: 591a6e8588fc ("selftests/resctrl: Add basic resctrl file system operations and data") Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> --- tools/testing/selftests/resctrl/resctrl.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/resctrl/resctrl.h b/tools/testing/selftests/resctrl/resctrl.h index 87e39456dee0..f455f0b7e314 100644 --- a/tools/testing/selftests/resctrl/resctrl.h +++ b/tools/testing/selftests/resctrl/resctrl.h @@ -43,6 +43,7 @@ do { \ perror(err_msg); \ kill(ppid, SIGKILL); \ + umount_resctrlfs(); \ exit(EXIT_FAILURE); \ } while (0)