Skip to contentSkip to conversation

io_uring/cmd: remove unused io_uring_cmd_iopoll_done()

PATCH Applied Caleb Sander Mateos 2 participants 2 messages Sep 2, 2025 – Sep 3, 2025 io_uring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 io_uring/cmd: remove unused io_uring_cmd_iopoll_done()

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.

---
 include/linux/io_uring/cmd.h | 11 -----------
 1 file changed, 11 deletions(-)
include/linux/io_uring/cmd.h +0 -11
index 4bd3a7339243..7e38d4512b6a 100644
@@ -128,21 +128,10 @@ static inline bool io_uring_mshot_cmd_post_cqe(struct io_uring_cmd *ioucmd,
 {
 	return true;
 }
 #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,
 			void (*task_work_cb)(struct io_uring_cmd *, unsigned))
 {
 	__io_uring_cmd_do_in_task(ioucmd, task_work_cb, IOU_F_TWQ_LAZY_WAKE);
Signature · 1 line
2.45.2
maintainer Applied
#1 lore raw
Quoted 5 lines · Caleb Sander Mateos

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.

Applied, thanks!

[1/1] io_uring/cmd: remove unused io_uring_cmd_iopoll_done()

      commit: 9f8608fce90fbcd2a98ceefad0bc762423927629

Best regards,

Signature · 1 line
Jens Axboe