Skip to content
Commit 052f3951 authored by Ryan Sullivan's avatar Ryan Sullivan Committed by Petr Mladek
Browse files

selftests/livepatch: wait for atomic replace to occur



On some machines with a large number of CPUs there is a sizable delay
between an atomic replace occurring and when sysfs updates accordingly.
This fix uses 'loop_until' to wait for the atomic replace to unload all
previous livepatches.

Reported-by: default avatarCKI Project <cki-project@redhat.com>
Closes: https://datawarehouse.cki-project.org/kcidb/tests/redhat:1413102084-x86_64-kernel_upt_28


Signed-off-by: default avatarRyan Sullivan <rysulliv@redhat.com>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Acked-by: default avatarJoe Lawrence <joe.lawrence@redhat.com>
Link: https://lore.kernel.org/r/20240822173122.14760-1-rysulliv@redhat.com


Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent d2d721e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment