Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1132982rwp; Thu, 13 Jul 2023 06:40:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlEE8eMc8oZh6heBxvqHJT5v03fIjjdQhRbQcnwQGv0Br1aGRKlo++Rl5UtZycstM4w5zinj X-Received: by 2002:a05:6a00:1694:b0:67a:c810:3cb0 with SMTP id k20-20020a056a00169400b0067ac8103cb0mr1650611pfc.3.1689255641002; Thu, 13 Jul 2023 06:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689255640; cv=none; d=google.com; s=arc-20160816; b=EtMV75EsTrvvPJVXoE4RQel5jtGs5y5cpYHictJkj/pgZ+afUBzg2UZ4VgH5t0+M3I bJQXAxF0K46VX0SFrSomGSfeCq/OQQw7fEjqa1ECx9O6ZL7MiMY6XJCb1S/LN0SUyND2 qqFuK5a+VqU4G/k3+yWJKoyROm0ThLO/icFIdCCObFXHXDieW5B2u+8aF2aHJCAJarte +/+KHz3FH+8nud9JDk7xbsCGxDzMrOqXB1t36P65mk9F4F/P0Oad4qrZ0/Y7nzYS9reE M0/b6hD7yCTtMC1a6mzbbUdoYgYX9jVb/7eJuwOe6tZLyWZDsSZX1TIz3yqhoZifDIAm 3gfQ== 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=BgA+kVcVkVKzO718h4f1Lpy2XcgF6QzinBo5UZXYTzU=; fh=Ub9PFYMxVygA+0Xpq+fwFd2Pqb8XsEOzK1NyFa5MuDg=; b=eWNCI9ttKfzmlhFO7XKOPMIe0ZE3MbxhHmHFWMz2ukcGAEvjjxZNlN+rCpWYbNN55g KY458YIl4XGiXhUXkm5Q+yQep8GP7zF108BBjWM2L53IYkbPBlf5Vs8HeNH26BG3r2oQ 9FNCIex7XZYYgy+ATi0R91FjxFLztNh2z/bW/4TD4Gg2EMJsXrHOnl3oSjgtq3wzgPZ8 5/nwobzFtCw21Ul0bkyGFML8JsMq9gSwr21XQo2iKTSz/nbWLlOeIwHGiE5EN3r4iglF pa6Lvg44vQS/pDsgu+DRv2HZ0bpl1Q/AlVE9zPqu2FSDLiG1QAeXDzAcFruIhYTARxkU Hu2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V3b4HCbx; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a056a0022d400b00682646da338si5309141pfj.60.2023.07.13.06.40.29; Thu, 13 Jul 2023 06:40:40 -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=V3b4HCbx; 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 S235169AbjGMNU5 (ORCPT + 99 others); Thu, 13 Jul 2023 09:20:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234839AbjGMNUh (ORCPT ); Thu, 13 Jul 2023 09:20:37 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7BC830E1; Thu, 13 Jul 2023 06:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689254427; x=1720790427; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8fEVbocJK76OsCYtzLBWGVMQr0k8AvV/EpnfvvAei/8=; b=V3b4HCbxFRaUoXjeZ1j6rDCl2E7ytiwepYJYyS2gCaZvnBcX33DrYZEJ xhTBrMTgXvAJlPfSTRyjSR8EeUx4VbvKd7SvrsUPilb3lPDJHZfCkckxR Z9jVEWjJe53gq3Sqpn6AOibdOErRFvipd3qcDfBOUtnakZ0CieVeKWX3L 71xfONcWojh3zNLeuwREXnqZ3Cre2jcnZm7WPIYGNIkMCP8ZoJdUVSkHR tiPJckV5jvHiQ9hncLfI2cxAfd1uBa3WPD1DP21Qpij6e2XeOPVcLBf+k DZfNK2X7ieUqkjD2iKFCzkHroqvP/enn8oIpOtxfDQP1cbzTiJ+p+oomh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10770"; a="345496565" X-IronPort-AV: E=Sophos;i="6.01,202,1684825200"; d="scan'208";a="345496565" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2023 06:20:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10770"; a="968615719" X-IronPort-AV: E=Sophos;i="6.01,202,1684825200"; d="scan'208";a="968615719" Received: from ijarvine-mobl2.ger.corp.intel.com ([10.251.222.39]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2023 06:20:24 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-kselftest@vger.kernel.org, Reinette Chatre , Shuah Khan , Shaopeng Tan , Fenghua Yu , Babu Moger , Sai Praneeth Prakhya , linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH v4 03/19] selftests/resctrl: Unmount resctrl FS if child fails to run benchmark Date: Thu, 13 Jul 2023 16:19:16 +0300 Message-Id: <20230713131932.133258-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230713131932.133258-1-ilpo.jarvinen@linux.intel.com> References: <20230713131932.133258-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=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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) -- 2.30.2