Skip to content

Commit 2cacedc

Browse files
isilenceaxboe
authored andcommitted
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>
1 parent a9c3eda commit 2cacedc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/notif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct io_kiocb *io_alloc_notif(struct io_ring_ctx *ctx,
7373
}
7474

7575
void io_notif_slot_flush(struct io_notif_slot *slot)
76-
__must_hold(&ctx->uring_lock)
76+
__must_hold(&slot->notif->ctx->uring_lock)
7777
{
7878
struct io_kiocb *notif = slot->notif;
7979
struct io_notif_data *nd = io_notif_to_data(notif);

0 commit comments

Comments
 (0)