All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qais Yousef <qais.yousef@arm.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] cpuset_hotplug_test.sh: Fix a race condition
Date: Thu, 16 Jul 2020 10:33:17 +0100	[thread overview]
Message-ID: <20200716093316.re67arcm3tbxtwas@e107158-lin.cambridge.arm.com> (raw)
In-Reply-To: <20200716060710.GA3812@dell5510>

Hi Petr


On 07/16/20 08:07, Petr Vorel wrote:
> Hi Qais,
> 
> thanks for your patch.

Thanks for having a look.

> BTW this has already been reviewed and tested by Huacai Chen [1].
> LGTM, although I'd prefer to detect with with polling, isn't it possible? [1].

FWIW I did try to avoid the sleep [1].

Were you thinking of something like that (pseudo code)?

	for i in $(seq 3)
	do
		sleep 1
		verify()
		if [ sucess ]; then
			break;
		fi
	done

Or you had something more sophisticated in mind?

Thanks

--
Qais Yousef

[1] https://lore.kernel.org/lkml/20200407133520.GI162390@mtj.duckdns.org/

  reply	other threads:[~2020-07-16  9:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-14 15:25 [LTP] [PATCH] cpuset_hotplug_test.sh: Fix a race condition Qais Yousef
2020-07-16  6:07 ` Petr Vorel
2020-07-16  9:33   ` Qais Yousef [this message]
2020-07-16  9:57     ` Petr Vorel
2020-07-16 10:12       ` Qais Yousef
2020-07-16 12:08         ` Petr Vorel
2020-07-16 13:49           ` Qais Yousef
2020-07-16 14:21             ` Petr Vorel
2020-07-16 15:30               ` Qais Yousef
2020-07-16 20:56                 ` Petr Vorel
2020-07-17 11:25                   ` Qais Yousef
2020-07-17 11:28                     ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200716093316.re67arcm3tbxtwas@e107158-lin.cambridge.arm.com \
    --to=qais.yousef@arm.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.