diff options
| author | Shashank Mohan Jain <jain.sm@gmail.com> | 2026-09-27 10:47:26 +0530 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-11-05 18:21:54 +0100 |
| commit | 36ac3a0dedf784cddb9f5161a64e6a50cf4cd0ad (patch) | |
| tree | 8033cc480e69def8bb1fedd483201a5e6374e7a1 /include/linux | |
| parent | 94defd41d80f10bbe883c0c8d1b28d1665b6b153 (diff) | |
lib/tests: errseq: add a concurrent check_and_advance test
Add a test case that races errseq_check_and_advance() on one CPU
against errseq_set() of a different error on another CPU, then records
the first error again and lets a second cursor consume it. The second
-EIO is recorded after the first cursor's check returned, so that
cursor's next check must report an error, whichever way the race with
-ENOSPC went.
Without the previous commit 1-6% of 2 million rounds lose the error
on UML with 4 CPUs (seccomp=on ncpus=4); with it none do. The case is
skipped on a single CPU and stops after 5 seconds.
Signed-off-by: Shashank Mohan Jain <jain.sm@gmail.com>
Link: https://patch.msgid.link/20260927051726.71337-3-jain.sm@gmail.com
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
