diff options
| author | Jens Axboe <[email protected]> | 2025-05-07 13:34:24 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-05-07 13:55:15 +0000 |
| commit | 687b2bae0efff9b25e071737d6af5004e6e35af5 (patch) | |
| tree | ed667929806efd8b50851810e52b713dc0ec6fc7 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | io_uring: always arm linked timeouts prior to issue (diff) | |
| download | kernel-687b2bae0efff9b25e071737d6af5004e6e35af5.tar.gz kernel-687b2bae0efff9b25e071737d6af5004e6e35af5.zip | |
io_uring: ensure deferred completions are flushed for multishot
Multishot normally uses io_req_post_cqe() to post completions, but when
stopping it, it may finish up with a deferred completion. This is fine,
except if another multishot event triggers before the deferred completions
get flushed. If this occurs, then CQEs may get reordered in the CQ ring,
as new multishot completions get posted before the deferred ones are
flushed. This can cause confusion on the application side, if strict
ordering is required for the use case.
When multishot posting via io_req_post_cqe(), flush any pending deferred
completions first, if any.
Cc: [email protected] # 6.1+
Reported-by: Norman Maurer <[email protected]>
Reported-by: Christian Mazakas <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
