diff options
author | Jens Axboe <axboe@kernel.dk> | 2025-01-23 03:29:31 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-01-23 21:27:52 +0300 |
commit | d58d82bd0efd6c8edd452fc2f6c6dd052ec57cb2 (patch) | |
tree | 5e0fff2260b044c1f3ae1e8cb1449bb113c43370 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 69a62e03f896a7382671877b6ad6aab87c53e9c3 (diff) | |
download | linux-d58d82bd0efd6c8edd452fc2f6c6dd052ec57cb2.tar.xz |
io_uring/uring_cmd: use cached cmd_op in io_uring_cmd_sock()
io_uring_cmd_sock() does a normal read of cmd->sqe->cmd_op, where it
really should be using a READ_ONCE() as ->sqe may still be pointing to
the original SQE. Since the prep side already does this READ_ONCE() and
stores it locally, use that value rather than re-read it.
Fixes: 8e9fad0e70b7b ("io_uring: Add io_uring command support for sockets")
Link: https://lore.kernel.org/r/20250121-uring-sockcmd-fix-v1-1-add742802a29@google.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions