diff options
-rw-r--r-- | io_uring/io_uring.c | 2 | ||||
-rw-r--r-- | io_uring/io_uring.h | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 72c97af4f292..24aa049fe7e1 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -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); } /* diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index dcb8e3468f1d..76659d2fc90c 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -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); |