summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorXinyu Zhang <xizhang@purestorage.com>2025-02-27 14:39:13 -0800
committerJens Axboe <axboe@kernel.dk>2025-02-28 07:05:31 -0700
commit99fde895ff56ac2241e7b7b4566731d72f2fdaa7 (patch)
tree52b997933ad3421ed8e9bce3e13dc44a5787ff52 /tools/perf/scripts/python/exported-sql-viewer.py
parentff92d824d0b55e35ed2ee77021cbd2ed3e7ae7a2 (diff)
nvme: map uring_cmd data even if address is 0
When using kernel registered bvec fixed buffers, the "address" is actually the offset into the bvec rather than userspace address. Therefore it can be 0. We can skip checking whether the address is NULL before mapping uring_cmd data. Bad userspace address will be handled properly later when the user buffer is imported. With this patch, we will be able to use the kernel registered bvec fixed buffers in io_uring NVMe passthru with ublk zero-copy support. Reviewed-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Jens Axboe <axboe@kernel.dk> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Xinyu Zhang <xizhang@purestorage.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Link: https://lore.kernel.org/r/20250227223916.143006-4-kbusch@meta.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions