]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
io_uring/cmd: remove unused io_uring_cmd_iopoll_done()
authorCaleb Sander Mateos <csander@purestorage.com>
Tue, 2 Sep 2025 01:33:27 +0000 (19:33 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Sep 2025 23:35:26 +0000 (17:35 -0600)
io_uring_cmd_iopoll_done()'s only caller was removed in commit
9ce6c9875f3e ("nvme: always punt polled uring_cmd end_io work to
task_work"). So remove the unused function too.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250902013328.1517686-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring/cmd.h

index c4d7874016bb8ee1c756fd151d54d0f35adbc1ab..50dd6a53cb5ed4ac583529bde0d9bb721a5875ef 100644 (file)
@@ -133,17 +133,6 @@ static inline bool io_uring_mshot_cmd_post_cqe(struct io_uring_cmd *ioucmd,
 }
 #endif
 
-/*
- * Polled completions must ensure they are coming from a poll queue, and
- * hence are completed inside the usual poll handling loops.
- */
-static inline void io_uring_cmd_iopoll_done(struct io_uring_cmd *ioucmd,
-                                           ssize_t ret, ssize_t res2)
-{
-       lockdep_assert(in_task());
-       io_uring_cmd_done(ioucmd, ret, res2, 0);
-}
-
 /* users must follow the IOU_F_TWQ_LAZY_WAKE semantics */
 static inline void io_uring_cmd_do_in_task_lazy(struct io_uring_cmd *ioucmd,
                        io_uring_cmd_tw_t task_work_cb)