Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1628509ybk; Thu, 21 May 2020 11:17:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRQ/ZtUGay90nL04d2oh5VP6tmgBlNhpJa2HThhc6Ebx1ZcgZRlVo/6UKjASz1TZbr1r5S X-Received: by 2002:a17:906:d043:: with SMTP id bo3mr4545098ejb.409.1590085049088; Thu, 21 May 2020 11:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590085049; cv=none; d=google.com; s=arc-20160816; b=I1Ip3g8yqKSwptiWUzI4x0NmvMZL6cY1/iFfQNGry61wMeF3oHxzo3y4RJeZrGaQ+4 EKjecWg9JPZuN1KP1gUBFbHHck8IS1KQv794UU7pJ8VjfqfVlsUJx7fFRMGQjv3ccZFV y+LQMX49EWIMeWE/f1TyEzIn5g+afUZFf5gpTsuTyinpgW1BlKn9oyNbZBsy+/nanf7H mCobbPA1kFtgO9Of7Q5PeL4QC8JoJ9ZVG005YxhbHZouCr7jacv0oQAsrjpYJ2WXXAM2 Ou9iAzJm123abmBX6ndtxMOv+2mrpkEmneFFT/+VE4XjC6ibBvuhMr1JJQ+cXwqV7c8g TcHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=qDLlU65MzdKOPPIJ0B/YK5GBnPvRP8ejVaxN399eRQA=; b=szZeXV3mopycHaRmI30X1eMLvqI2Et0UhqE//zGGQPr2RG+RNvuPQnaIbQ3P4YCmwJ Ihti8nrfcCPG3a/sZCVfdIicDq1pI0DxNjwngeMes4ULcciPYzgBF0cFxlWuibW9gfmO zrLeE7AvtnmwG+Bmx3cseSoTMWOlrqGZczme/T8jIt+ZkoWrMMuIBSZL7Xyre5rjwG8U LpfzGp+VF34nPkZn54Rk2I5VGxL3jrLSPvpBw9jAtyVnONvPkORm5RKCN3pAOa/4Kooe EA2aGZJC4DW/h0TsISh78/+sndZWraFYfFlC0Fc6eWLEy3+zS7EYmK0u4cDFRRd03bt+ p4Vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd27si4000077ejb.65.2020.05.21.11.17.05; Thu, 21 May 2020 11:17:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729321AbgEUSPT (ORCPT + 99 others); Thu, 21 May 2020 14:15:19 -0400 Received: from mga18.intel.com ([134.134.136.126]:25637 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728067AbgEUSPS (ORCPT ); Thu, 21 May 2020 14:15:18 -0400 IronPort-SDR: B1OJchEajIHsjVbNLwyPhcmgGSFWSOhF0jVj564tjY5LsaLD/zxzF7fXMEy49wyvi3cY9g7Wi9 ukO33mqKpYDg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2020 11:15:18 -0700 IronPort-SDR: 467gzIizawwuQPbVCKoikzWzLyd9P3wjCD7F/en4KMNDyW2znS/vZ+lHLLfj0q2V67sqK7L5/W LFxGcqGl7Kbg== X-IronPort-AV: E=Sophos;i="5.73,418,1583222400"; d="scan'208";a="255377912" Received: from rchatre-mobl.amr.corp.intel.com (HELO [10.255.230.233]) ([10.255.230.233]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2020 11:15:16 -0700 Subject: Re: [PATCH V2 15/19] selftests/resctrl: Change return type of umount_resctrlfs() to void To: "Prakhya, Sai Praneeth" , "shuah@kernel.org" , "skhan@linuxfoundation.org" , "linux-kselftest@vger.kernel.org" Cc: "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "Luck, Tony" , "babu.moger@amd.com" , "james.morse@arm.com" , "Shankar, Ravi V" , "Yu, Fenghua" , "x86@kernel.org" , LKML , "dan.carpenter@oracle.com" , "dcb314@hotmail.com" References: <3c00e744acbfa67a1988638f1718cd67382a6f59.1589835155.git.sai.praneeth.prakhya@intel.com> <5703181d-832b-27c1-4b32-241f5cc868fd@intel.com> From: Reinette Chatre Message-ID: <2e9ea256-cbf4-8222-c639-74479400fd77@intel.com> Date: Thu, 21 May 2020 11:15:15 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sai, On 5/21/2020 10:19 AM, Prakhya, Sai Praneeth wrote: > Hi Reinette, > >> -----Original Message----- >> From: Reinette Chatre >> Sent: Wednesday, May 20, 2020 4:52 PM >> To: Prakhya, Sai Praneeth ; >> shuah@kernel.org; skhan@linuxfoundation.org; linux-kselftest@vger.kernel.org >> Cc: tglx@linutronix.de; mingo@redhat.com; bp@alien8.de; Luck, Tony >> ; babu.moger@amd.com; james.morse@arm.com; >> Shankar, Ravi V ; Yu, Fenghua >> ; x86@kernel.org; linux-kernel@vger.kernel; >> dan.carpenter@oracle.com; dcb314@hotmail.com >> Subject: Re: [PATCH V2 15/19] selftests/resctrl: Change return type of >> umount_resctrlfs() to void >> >> Hi Sai, >> >> On 5/18/2020 3:08 PM, Sai Praneeth Prakhya wrote: >>> umount_resctrlfs() is used only during tear down path and there is >>> nothing much to do if unmount of resctrl file system fails, so, all >>> the callers of this function are not checking for the return value. >>> Hence, change the return type of this function from int to void. >> >> Should the callers be ignoring the return value? From what I can tell the >> filesystem is unmounted between test runs so I wonder if it may help if the >> return code is used and the test exits with an appropriate error to user space for >> possible investigation instead of attempting to run a new test on top of the >> resctrl filesystem that could potentially be having issues at the time. > > Makes sense to me to check for the return value of umount() and take appropriate > action rather than ignoring it. But, since this might happen very rarely (I haven't > noticed umount() failing till now), I am thinking to queue this up for cleanup series. > What do you think? That sounds good. > > This bug fixes series will then have patches 16 and 17 because they are fixing a bug > that could be easily noticed. Please let me know if you think otherwise. I don't, dropping this change that makes it easy to ignore an error in this round so that any errors could be dealt with better in a later patch sounds good to me. Thank you Reinette