summaryrefslogtreecommitdiffstats
path: root/io_uring/rw.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-06-20 01:25:57 +0100
committerJens Axboe <axboe@kernel.dk>2022-07-24 18:39:15 -0600
commit46929b086886ade8302cff6e85ccea66bce0cf98 (patch)
tree81ec1206f12b3e260b276126484ce6af19129a25 /io_uring/rw.c
parent253993210bd8aa3b39a392807c03c8ef1cd7dc3d (diff)
downloadlinux-46929b086886ade8302cff6e85ccea66bce0cf98.tar.gz
linux-46929b086886ade8302cff6e85ccea66bce0cf98.tar.bz2
linux-46929b086886ade8302cff6e85ccea66bce0cf98.zip
io_uring: add io_commit_cqring_flush()
Since __io_commit_cqring_flush users moved to different files, introduce io_commit_cqring_flush() helper and encapsulate all flags testing details inside. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/0da03887435dd9869ffe46dcd3962bf104afcca3.1655684496.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rw.c')
-rw-r--r--io_uring/rw.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/io_uring/rw.c b/io_uring/rw.c
index f8b42f2265df..0028e95e6633 100644
--- a/io_uring/rw.c
+++ b/io_uring/rw.c
@@ -1016,10 +1016,7 @@ copy_iov:
static void io_cqring_ev_posted_iopoll(struct io_ring_ctx *ctx)
{
- if (unlikely(ctx->off_timeout_used || ctx->drain_active ||
- ctx->has_evfd))
- __io_commit_cqring_flush(ctx);
-
+ io_commit_cqring_flush(ctx);
if (ctx->flags & IORING_SETUP_SQPOLL)
io_cqring_wake(ctx);
}