projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41a5169
)
io_uring: correct __must_hold annotation
author
Jens Axboe
<axboe@kernel.dk>
Thu, 12 Aug 2021 18:48:34 +0000
(12:48 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 23 Aug 2021 19:10:37 +0000
(13:10 -0600)
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>
fs/io_uring.c
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index
c581c7c
..
e1ca427
100644
(file)
--- 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;