]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
io_uring: remove io_req_complete_post_tw
authorDylan Yudaken <dylany@meta.com>
Fri, 25 Nov 2022 10:34:10 +0000 (02:34 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Nov 2022 13:10:46 +0000 (06:10 -0700)
It's only used in one place. Inline it.

Signed-off-by: Dylan Yudaken <dylany@meta.com>
Link: https://lore.kernel.org/r/20221125103412.1425305-2-dylany@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h

index 72c97af4f292e0c5ef71eee5245afa8be1073504..24aa049fe7e1178d16143051f41d836d068ba541 100644 (file)
@@ -1519,7 +1519,7 @@ void io_req_task_complete(struct io_kiocb *req, bool *locked)
        if (*locked)
                io_req_complete_defer(req);
        else
-               io_req_complete_post_tw(req, locked);
+               io_req_complete_post(req, IO_URING_F_UNLOCKED);
 }
 
 /*
index dcb8e3468f1d6001835a8eaed4c49efae671b608..76659d2fc90c6033897694fb4b04f626dd24bc9d 100644 (file)
@@ -37,13 +37,6 @@ bool io_aux_cqe(struct io_ring_ctx *ctx, bool defer, u64 user_data, s32 res, u32
                bool allow_overflow);
 void __io_commit_cqring_flush(struct io_ring_ctx *ctx);
 
-static inline void io_req_complete_post_tw(struct io_kiocb *req, bool *locked)
-{
-       unsigned flags = *locked ? 0 : IO_URING_F_UNLOCKED;
-
-       io_req_complete_post(req, flags);
-}
-
 struct page **io_pin_pages(unsigned long ubuf, unsigned long len, int *npages);
 
 struct file *io_file_get_normal(struct io_kiocb *req, int fd);