]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/ublk: fix IO thread idle check
authorMing Lei <ming.lei@redhat.com>
Tue, 13 Jan 2026 08:58:00 +0000 (16:58 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jan 2026 14:54:55 +0000 (07:54 -0700)
commit75aad5ffe099a1b1a342257236dc260493917ed2
treeadab42fdcedec49777446b81c3a227ba910b49b9
parentf5f2bad67a45cd1ef6f5b727da104694a81b3666
selftests/ublk: fix IO thread idle check

Include cmd_inflight in ublk_thread_is_done() check. Without this,
the thread may exit before all FETCH commands are completed, which
may cause device deletion to hang.

Fixes: 6aecda00b7d1 ("selftests: ublk: add kernel selftests for ublk")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/kublk.c