diff options
author | 2020-07-23 20:25:20 +0300 | |
---|---|---|
committer | 2020-07-24 13:00:46 -0600 | |
commit | ae34817bd93e373a03203a4c6892735c430a14e1 (patch) | |
tree | 36e31c3d6eb575289ab4ad10a293c661fa3b8396 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | io_uring: clear IORING_SQ_NEED_WAKEUP after executing task works (diff) | |
download | wireguard-linux-ae34817bd93e373a03203a4c6892735c430a14e1.tar.xz wireguard-linux-ae34817bd93e373a03203a4c6892735c430a14e1.zip |
io_uring: don't do opcode prep twice
Calling into opcode prep handlers may be dangerous, as they re-read
SQE but might not re-initialise requests completely. If io_req_defer()
passed fast checks and is done with preparations, punt it async.
As all other cases are covered with nulling @sqe, this guarantees that
io_[opcode]_prep() are visited only once per request.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions