diff options
| author | Caleb Sander Mateos <csander@purestorage.com> | 2026-08-03 15:14:35 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-08-03 20:32:09 -0600 |
| commit | 8c76625ff9360cbe9ce0c47a624877aea14b3499 (patch) | |
| tree | f4177f15ca1fc0c8e308e606d2aeebc08115d8da /tools/perf/scripts/python/task-analyzer.py | |
| parent | 3a00b782a7b63b1876261ab883e1d8e1aa0e09fb (diff) | |
ublk: split request validation from io_desc init
In preparation for moving the struct ublksrv_io_desc initialization from
the thread submitting ublk requests to the daemon thread receiving them,
split the fallible part of ublk_setup_iod{,_zoned}() into new helper
ublk_validate_req{,_zoned}(). Only ublk_setup_iod{,_zoned}() accesses
the io_desc and cannot error out.
Return a bool value from ublk_validate_req{,_zoned}() as the existing
error code ublk_setup_iod{,_zoned}() returns is only checked against
BLK_STS_OK.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Link: https://patch.msgid.link/20260803211441.2538144-4-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
