aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2023-05-19 14:50:29 +0800
committerJens Axboe <[email protected]>2023-05-19 19:59:17 -0600
commit62fe99cef94a5900cac3bf15fd03ee8baad1a99c (patch)
treebca133e6c07f3b1fc2c074407c218f28eac1b48f /tools/perf/scripts/python/task-analyzer.py
parent38f2dd34410f9070b60969a07ff7d8743b4fd56c (diff)
ublk: add read()/write() support for ublk char device
Support pread()/pwrite() on ublk char device for reading/writing request io buffer, so data copy between io request buffer and userspace buffer can be moved to ublk server from ublk driver. Then UBLK_F_NEED_GET_DATA becomes not necessary, so ublk server can allocate buffer without one extra round uring command communication for userspace to provide buffer. IO buffer can be located by iocb->ki_pos which encodes buffer offset, io tag and queue id info, and type of iocb->ki_pos is u64, so it is big enough for holding reasonable queue depth, nr_queues and max io buffer size. Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions