diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2019-11-21 21:24:36 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-25 19:56:10 -0700 |
commit | d732447fed7d6b4c22907f630cd25d574bae5276 (patch) | |
tree | f6c1b6523589be877c37b902333f5a26d1521225 /fs | |
parent | 915967f69c591b34c5a18d6618af021a81ffd700 (diff) | |
download | linux-d732447fed7d6b4c22907f630cd25d574bae5276.tar.bz2 |
io_uring: rename __io_submit_sqe()
__io_submit_sqe() is issuing requests, so call it as
such. Moreover, it ends by calling io_iopoll_req_issued().
Rename it and make terminology clearer.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/io_uring.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 736f27808f99..956a61cb0b13 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2594,8 +2594,8 @@ static int io_req_defer(struct io_kiocb *req) return -EIOCBQUEUED; } -static int __io_submit_sqe(struct io_kiocb *req, struct io_kiocb **nxt, - bool force_nonblock) +static int io_issue_sqe(struct io_kiocb *req, struct io_kiocb **nxt, + bool force_nonblock) { int ret, opcode; struct sqe_submit *s = &req->submit; @@ -2702,7 +2702,7 @@ static void io_wq_submit_work(struct io_wq_work **workptr) s->has_user = (work->flags & IO_WQ_WORK_HAS_MM) != 0; s->in_async = true; do { - ret = __io_submit_sqe(req, &nxt, false); + ret = io_issue_sqe(req, &nxt, false); /* * We can get EAGAIN for polled IO even though we're * forcing a sync submission from here, since we can't @@ -2913,7 +2913,7 @@ static void __io_queue_sqe(struct io_kiocb *req) struct io_kiocb *nxt = io_prep_linked_timeout(req); int ret; - ret = __io_submit_sqe(req, NULL, true); + ret = io_issue_sqe(req, NULL, true); /* * We async punt it if the file wasn't marked NOWAIT, or if the file |