summaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang-test.cpp
diff options
context:
space:
mode:
authorUday Shankar <ushankar@purestorage.com>2025-06-03 17:38:33 -0600
committerJens Axboe <axboe@kernel.dk>2025-06-03 20:19:44 -0600
commita2f4c1ae163b815dc81e3cab97c3149fdc6639e3 (patch)
tree8977bd336468115447c4485e214a01f878280fb1 /tools/perf/util/c++/clang-test.cpp
parent43a67dd812c5d3de163c0b6971046b4a4b633d3f (diff)
selftests: ublk: kublk: improve behavior on init failure
Some failure modes are handled poorly by kublk. For example, if ublk_drv is built as a module but not currently loaded into the kernel, ./kublk add ... just hangs forever. This happens because in this case (and a few others), the worker process does not notify its parent (via a write to the shared eventfd) that it has tried and failed to initialize, so the parent hangs forever. Fix this by ensuring that we always notify the parent process of any initialization failure, and have the parent print a (not very descriptive) log line when this happens. Signed-off-by: Uday Shankar <ushankar@purestorage.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20250603-ublk_init_fail-v1-1-87c91486230e@purestorage.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions