]> www.infradead.org Git - users/hch/xfs.git/commit
selftests/livepatch: wait for atomic replace to occur
authorRyan Sullivan <rysulliv@redhat.com>
Thu, 22 Aug 2024 17:31:22 +0000 (13:31 -0400)
committerPetr Mladek <pmladek@suse.com>
Mon, 26 Aug 2024 12:52:25 +0000 (14:52 +0200)
commit052f3951640fd96d2e777b3272a925ec6c0c8100
tree01ee521e2371b59c021d3da8303ceeecb12c7e68
parentd2d721e2eb1337c67f0c5bba303f8a013b622bed
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: CKI Project <cki-project@redhat.com>
Closes: https://datawarehouse.cki-project.org/kcidb/tests/redhat:1413102084-x86_64-kernel_upt_28
Signed-off-by: Ryan Sullivan <rysulliv@redhat.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://lore.kernel.org/r/20240822173122.14760-1-rysulliv@redhat.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
tools/testing/selftests/livepatch/test-livepatch.sh