diff options
| author | 2025-09-17 19:49:53 -0600 | |
|---|---|---|
| committer | 2025-09-20 06:36:27 -0600 | |
| commit | 755a18469ca4eca3b5bb4f52704b7708a9106db9 (patch) | |
| tree | c74246d9b5e6c54a9fd6c57d40f56de34782fe18 /drivers/usb/cdns3/cdns3-debug.h | |
| parent | ublk: pass ublk_io to __ublk_complete_rq() (diff) | |
| download | linux-rng-755a18469ca4eca3b5bb4f52704b7708a9106db9.tar.xz linux-rng-755a18469ca4eca3b5bb4f52704b7708a9106db9.zip | |
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 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions
