diff options
author | Caleb Sander Mateos <csander@purestorage.com> | 2025-09-17 19:49:53 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-09-20 06:36:27 -0600 |
commit | 755a18469ca4eca3b5bb4f52704b7708a9106db9 (patch) | |
tree | c74246d9b5e6c54a9fd6c57d40f56de34782fe18 /rust/helpers/helpers.c | |
parent | 97a02be6303646e19e9092042928b0e13543305c (diff) |
ublk: don't access ublk_queue in ublk_unmap_io()
For ublk servers with many ublk queues, accessing the ublk_queue in
ublk_unmap_io() is a frequent cache miss. Pass to __ublk_complete_rq()
whether the ublk server's data buffer needs to be copied to the request.
In the callers __ublk_fail_req() and ublk_ch_uring_cmd_local(), get the
flags from the ublk_device instead, as its flags have just been read.
In ublk_put_req_ref(), pass false since all the features that require
reference counting disable copying of the data buffer upon completion.
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 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions