diff options
| author | 2026-10-11 01:35:52 -0500 | |
|---|---|---|
| committer | 2026-10-15 18:25:35 -0600 | |
| commit | cdf6e5de86a91da6e4d621260bc70e99e2f3a25e (patch) | |
| tree | db415f0119d6f8fe1959625877beca11e3329bff /scripts/Makefile.thinlto | |
| parent | ublk: refuse to go live after an io command was canceled (diff) | |
selftests: ublk: move the control command helpers into ctrl.c
Move the ublk_ctrl_*() helpers and ublk_setup_ring() out of kublk.c,
so a small test program can send control commands without copying
them. kublk still links every *.c file, ctrl.c included.
ublk_ctrl_deinit() now also exits the control ring, and ublk_ctrl_init()
checks the allocation and closes /dev/ublk-control when the ring setup
fails. kublk calls them only around its own lifetime, but a test which
opens a control handle per thread must not leak.
No functional change for kublk.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Tested-by: Josef Bacik <josef@toxicpanda.com>
Link: https://patch.msgid.link/20261011063555.1142277-10-tom.leiming@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
