diff options
| author | 2021-08-12 12:48:34 -0600 | |
|---|---|---|
| committer | 2021-08-23 13:10:37 -0600 | |
| commit | a141dd896f544df9627502cfb3fc1a73fb6587e4 (patch) | |
| tree | eb82e3c838af7a4218c2ce893cede8baab45ff04 | |
| parent | io_uring: code clean for completion_lock in io_arm_poll_handler() (diff) | |
| download | linux-dev-a141dd896f544df9627502cfb3fc1a73fb6587e4.tar.xz linux-dev-a141dd896f544df9627502cfb3fc1a73fb6587e4.zip | |
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.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
| -rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index c581c7cbb8b2..e1ca427e183a 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2182,7 +2182,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; |
