Skip to contentSkip to conversation

io_uring: correct __must_hold annotation

PATCH New Jens Axboe 1 participant 1 message Aug 12, 2021

Subsystems (2)
lore
Share & tools
lore

Jens Axboe

author maintainer
#0 lore raw

PATCH 1/1 io_uring: correct __must_hold annotation

io_req_free_batch() has a __must_hold annotation referencing a request being passed in, but we're passing in the context.

---

fs/io_uring.c +1 -1
index 14cb0af57396..8dcfc5296a7f 100644
@@ -2180,7 +2180,7 @@ static void io_req_free_batch(struct req_batch *rb, struct io_kiocb *req,
 }
 
 static void io_submit_flush_completions(struct io_ring_ctx *ctx)
-	__must_hold(&req->ctx->uring_lock)
+	__must_hold(&ctx->uring_lock)
 {
 	struct io_submit_state *state = &ctx->submit_state;
 	int i, nr = state->compl_nr;
Signature · 1 line
Jens Axboe