Commit 55b6a69f authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe

io_uring: fix acquire/release annotations

We do conditional locking, so __io_cq_lock() and friends not always
actually grab/release the lock, so kill misleading annotations.
Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/2a098f9144c24cab622f8bf90b39f44da5d0401e.1687518903.git.asml.silence@gmail.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f432b76b
...@@ -626,7 +626,6 @@ void __io_commit_cqring_flush(struct io_ring_ctx *ctx) ...@@ -626,7 +626,6 @@ void __io_commit_cqring_flush(struct io_ring_ctx *ctx)
} }
static inline void __io_cq_lock(struct io_ring_ctx *ctx) static inline void __io_cq_lock(struct io_ring_ctx *ctx)
__acquires(ctx->completion_lock)
{ {
if (!ctx->task_complete) if (!ctx->task_complete)
spin_lock(&ctx->completion_lock); spin_lock(&ctx->completion_lock);
...@@ -646,7 +645,6 @@ static inline void io_cq_lock(struct io_ring_ctx *ctx) ...@@ -646,7 +645,6 @@ static inline void io_cq_lock(struct io_ring_ctx *ctx)
/* keep it inlined for io_submit_flush_completions() */ /* keep it inlined for io_submit_flush_completions() */
static inline void __io_cq_unlock_post(struct io_ring_ctx *ctx) static inline void __io_cq_unlock_post(struct io_ring_ctx *ctx)
__releases(ctx->completion_lock)
{ {
io_commit_cqring(ctx); io_commit_cqring(ctx);
__io_cq_unlock(ctx); __io_cq_unlock(ctx);
...@@ -655,7 +653,6 @@ static inline void __io_cq_unlock_post(struct io_ring_ctx *ctx) ...@@ -655,7 +653,6 @@ static inline void __io_cq_unlock_post(struct io_ring_ctx *ctx)
} }
static void __io_cq_unlock_post_flush(struct io_ring_ctx *ctx) static void __io_cq_unlock_post_flush(struct io_ring_ctx *ctx)
__releases(ctx->completion_lock)
{ {
io_commit_cqring(ctx); io_commit_cqring(ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment