Skip to content

Commit da2634e

Browse files
metze-sambaaxboe
authored andcommitted
io_uring: consistently make use of io_notif_to_data()
This makes the assignment typesafe. It prepares changing io_kiocb_to_cmd() in the next commit. Signed-off-by: Stefan Metzmacher <[email protected]> Link: https://lore.kernel.org/r/8da6e9d12cf95ad4bc73274406d12bca7aabf72e.1660201408.git.metze@samba.org Signed-off-by: Jens Axboe <[email protected]>
1 parent 3ed159c commit da2634e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io_uring/notif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ __cold int io_notif_unregister(struct io_ring_ctx *ctx)
100100

101101
if (!notif)
102102
continue;
103-
nd = io_kiocb_to_cmd(notif);
103+
nd = io_notif_to_data(notif);
104104
slot->notif = NULL;
105105
if (!refcount_dec_and_test(&nd->uarg.refcnt))
106106
continue;

0 commit comments

Comments
 (0)