]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ublk: increase timeouts for parallel test execution
authorMing Lei <ming.lei@redhat.com>
Sat, 31 Jan 2026 16:23:38 +0000 (00:23 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 31 Jan 2026 21:56:28 +0000 (14:56 -0700)
commit56a08b87f9f2a763cb5546f83b78ebe1e96260af
tree02571d975737f8e3e5f01e85d0aa58861eae2f70
parent64406dd2f69fe27921c7bf06088871c002cf6186
selftests: ublk: increase timeouts for parallel test execution

When running tests in parallel with high JOBS count (e.g., JOBS=64),
the existing timeouts can be insufficient due to system load:

- Increase state wait loops from 20/50 to 100 iterations in
  _recover_ublk_dev(), __ublk_quiesce_dev(), and __ublk_kill_daemon()
  to handle slower state transitions under heavy load

- Add --timeout=20 to udevadm settle calls to prevent indefinite
  hangs when udev event queue is overwhelmed by rapid device
  creation/deletion

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/test_common.sh