提交 708b8cda 编写于 作者: J Jackie Liu 提交者: Joseph Qi

io_uring: remove parameter ctx of io_submit_state_start

to #26323578

commit 22efde5998657f6d1f31592c659aa3a9c7ad65f1 upstream.

Parameter ctx we have never used, clean it up.
Signed-off-by: NJackie Liu <liuyun01@kylinos.cn>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
Signed-off-by: NJoseph Qi <joseph.qi@linux.alibaba.com>
Acked-by: NXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
上级 b3b5cb38
......@@ -3392,7 +3392,7 @@ static void io_submit_state_end(struct io_submit_state *state)
* Start submission side cache.
*/
static void io_submit_state_start(struct io_submit_state *state,
struct io_ring_ctx *ctx, unsigned max_ios)
unsigned int max_ios)
{
blk_start_plug(&state->plug);
state->free_reqs = 0;
......@@ -3476,7 +3476,7 @@ static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr,
return -EBUSY;
if (nr > IO_PLUG_THRESHOLD) {
io_submit_state_start(&state, ctx, nr);
io_submit_state_start(&state, nr);
statep = &state;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册