diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-08-24 15:07:38 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-08-24 17:57:00 +0300 |
commit | 2cacedc873ab5f5945d8f1b71804b0bcea0383ff (patch) | |
tree | 9dc9f7d2e580f4feedc1d16babd59679594900fd /io_uring/notif.c | |
parent | a9c3eda7eada94e8cf29cb102aa80e1370d8fa2e (diff) | |
download | linux-2cacedc873ab5f5945d8f1b71804b0bcea0383ff.tar.xz |
io_uring/net: fix must_hold annotation
Fix up the io_alloc_notif()'s __must_hold as we don't have a ctx
argument there but should get it from the slot instead.
Reported-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/cbb0a920f18e0aed590bf58300af817b9befb8a3.1661342812.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/notif.c')
-rw-r--r-- | io_uring/notif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/notif.c b/io_uring/notif.c index 977736e82c1a..568ff17dc552 100644 --- a/io_uring/notif.c +++ b/io_uring/notif.c @@ -73,7 +73,7 @@ struct io_kiocb *io_alloc_notif(struct io_ring_ctx *ctx, } void io_notif_slot_flush(struct io_notif_slot *slot) - __must_hold(&ctx->uring_lock) + __must_hold(&slot->notif->ctx->uring_lock) { struct io_kiocb *notif = slot->notif; struct io_notif_data *nd = io_notif_to_data(notif); |