Re: [LTP] [PATCH v1 23/31] testcases: sysfs: Add sys_net04

Cyril Hrubis <[email protected]>
Newsgroups it.linux.lists.ltp
Message-ID <[email protected]>
Hi!
> Here I got intermittent fails in local test:
> 
>   sys_net_common.h:32: TFAIL: st->operstate (up) != operstate (down)
> 
> The possible reason is kernel asynchronous update race condition.
> The test reads operstate immediately after closing the FD, catching
> the stale "up" state before the kernel's background workqueue has
> time to update it to "down".

Looks like this was pointed out by the ltp-reviewer as well.

> Maybe we can add a polling mechanism with a timeout to wait for
> the operstate to transition.

Will do in v2.

-- 
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.