[LTP] [PATCH] cpuset_hotplug_test.sh: Fix a race condition

Qais Yousef qais.yousef@arm.com
Thu Jul 16 11:33:17 CEST 2020


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/


More information about the ltp mailing list