summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-04-06 05:00:46 +0300
committerJens Axboe <axboe@kernel.dk>2023-04-06 05:59:17 +0300
commit8c68ae3b22fa6fb2dbe83ef955ff10936503d28e (patch)
tree0c43bbb9204ae77d2f6d2e116f8d55ad36430c37 /tools/perf/scripts/python
parent38a8c4d1d45006841f0643f4cb29b5e50758837c (diff)
downloadlinux-8c68ae3b22fa6fb2dbe83ef955ff10936503d28e.tar.xz
ublk: read any SQE values upfront
Since SQE memory is shared with userspace, we should only be reading it once. We cannot read it multiple times, particularly when it's read once for validation and then read again for the actual use. ublk_ch_uring_cmd() is safe when called as a retry operation, as the memory backing is stable at that point. But for normal issue, we want to ensure that we only read ublksrv_io_cmd once. Wrap the function in a helper that reads the value into an on-stack copy of the struct. Cc: stable@vger.kernel.org # 6.0+ 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