[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7c99dc3c-a4fe-3285-f48f-8d1a562db2fb@linux.intel.com>
Date: Tue, 14 Feb 2023 11:41:08 +0200 (EET)
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: Reinette Chatre <reinette.chatre@...el.com>
cc: Shaopeng Tan <tan.shaopeng@...fujitsu.com>,
Fenghua Yu <fenghua.yu@...el.com>,
Shuah Khan <shuah@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCH v7 4/6] selftests/resctrl: Cleanup properly when an error
occurs in CAT test
On Mon, 13 Feb 2023, Reinette Chatre wrote:
>
>
> On 2/13/2023 2:00 AM, Ilpo Järvinen wrote:
> > On Mon, 13 Feb 2023, Shaopeng Tan wrote:
> >
> >> After creating a child process with fork() in CAT test, if an error
> >> occurs when parent process runs cat_val() or check_results(), the child
> >
> > I'd replace the rest of the paragraph with this:
> >
> > "returns early. The parent will wait pipe message from child which will
> > never be sent by the child and the parent cannot proceeed to unmount
> > resctrlfs."
>
> Note that the description is about an error within the parent process.
> In the case snipped above it is the parent that exits early, not the child.
Ah, that a good point. Somehow I was too fixed into thinking the child
exiting because it's what it's come across myself.
--
i.
> This first paragraph describes two scenarios, (a) error in parent, and (b)
> error in child. I think it is good information to keep descriptions of
> both scenarios.
>
> The proposed addition could be used to expand the description of the scenario
> when an error occurs in the child. In this case please consider changing "wait
> pipe message from child" to "wait for the pipe message from the child", and
> "proceeed" to "proceed".
>
> Reinette
>
Powered by blists - more mailing lists