提交 66b6bbd9 编写于 作者: P Pavel Begunkov 提交者: Cheng Jian

io_uring: rename __io_submit_sqe()

mainline inclusion
from mainline-5.5-rc1
commit d732447f
category: feature
bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=27
CVE: NA
---------------------------

__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: NPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
Signed-off-by: NZhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Nyangerkun <yangerkun@huawei.com>
Reviewed-by: Nzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
上级 3576dfdf
...@@ -2593,8 +2593,8 @@ static int io_req_defer(struct io_kiocb *req) ...@@ -2593,8 +2593,8 @@ static int io_req_defer(struct io_kiocb *req)
return -EIOCBQUEUED; return -EIOCBQUEUED;
} }
static int __io_submit_sqe(struct io_kiocb *req, struct io_kiocb **nxt, static int io_issue_sqe(struct io_kiocb *req, struct io_kiocb **nxt,
bool force_nonblock) bool force_nonblock)
{ {
int ret, opcode; int ret, opcode;
struct sqe_submit *s = &req->submit; struct sqe_submit *s = &req->submit;
...@@ -2701,7 +2701,7 @@ static void io_wq_submit_work(struct io_wq_work **workptr) ...@@ -2701,7 +2701,7 @@ static void io_wq_submit_work(struct io_wq_work **workptr)
s->has_user = (work->flags & IO_WQ_WORK_HAS_MM) != 0; s->has_user = (work->flags & IO_WQ_WORK_HAS_MM) != 0;
s->in_async = true; s->in_async = true;
do { 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 * We can get EAGAIN for polled IO even though we're
* forcing a sync submission from here, since we can't * forcing a sync submission from here, since we can't
...@@ -2912,7 +2912,7 @@ static void __io_queue_sqe(struct io_kiocb *req) ...@@ -2912,7 +2912,7 @@ static void __io_queue_sqe(struct io_kiocb *req)
struct io_kiocb *nxt = io_prep_linked_timeout(req); struct io_kiocb *nxt = io_prep_linked_timeout(req);
int ret; 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 * We async punt it if the file wasn't marked NOWAIT, or if the file
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册