summaryrefslogtreecommitdiffstats
path: root/io_uring/io_uring.h
diff options
context:
space:
mode:
authorDylan Yudaken <dylany@meta.com>2022-11-24 10:35:52 +0100
committerJens Axboe <axboe@kernel.dk>2022-11-25 14:10:04 +0100
commitc06c6c5d276707e04cedbcc55625e984922118aa (patch)
tree3dc0897408081f1631a2bab7b44c31d9286e8af9 /io_uring/io_uring.h
parentio_uring: remove iopoll spinlock (diff)
downloadlinux-c06c6c5d276707e04cedbcc55625e984922118aa.tar.xz
linux-c06c6c5d276707e04cedbcc55625e984922118aa.zip
io_uring: always lock in io_apoll_task_func
This is required for the failure case (io_req_complete_failed) and is missing. The alternative would be to only lock in the failure path, however all of the non-error paths in io_poll_check_events that do not do not return IOU_POLL_NO_ACTION end up locking anyway. The only extraneous lock would be for the multishot poll overflowing the CQE ring, however multishot poll would probably benefit from being locked as it will allow completions to be batched. So it seems reasonable to lock always. Signed-off-by: Dylan Yudaken <dylany@meta.com> Link: https://lore.kernel.org/r/20221124093559.3780686-3-dylany@meta.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.h')
0 files changed, 0 insertions, 0 deletions