diff options
| author | 2026-01-08 02:19:36 -0700 | |
|---|---|---|
| committer | 2026-01-12 09:16:33 -0700 | |
| commit | fd5a005fa6a261762292a2d89ef8d0174b66f541 (patch) | |
| tree | e789997d58a95e68500572d56b7e1d9ba685d943 /tools/perf/scripts/python | |
| parent | ublk: inline ublk_check_and_get_req() into ublk_user_copy() (diff) | |
ublk: move offset check out of __ublk_check_and_get_req()
__ublk_check_and_get_req() checks that the passed in offset is within
the data length of the specified ublk request. However, only user copy
(ublk_check_and_get_req()) supports accessing ublk request data at a
nonzero offset. Zero-copy buffer registration (ublk_register_io_buf())
always passes 0 for the offset, so the check is unnecessary. Move the
check from __ublk_check_and_get_req() to ublk_check_and_get_req().
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
