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

Cyril Hrubis chrubis@suse.cz
Wed Aug 19 17:40:39 CEST 2026


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
chrubis@suse.cz


More information about the ltp mailing list