Commit 22efde59 authored by Jackie Liu's avatar Jackie Liu Committed by Jens Axboe

io_uring: remove parameter ctx of io_submit_state_start

Parameter ctx we have never used, clean it up.
Signed-off-by: default avatarJackie Liu <liuyun01@kylinos.cn>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent da8c9690
...@@ -3396,7 +3396,7 @@ static void io_submit_state_end(struct io_submit_state *state) ...@@ -3396,7 +3396,7 @@ static void io_submit_state_end(struct io_submit_state *state)
* Start submission side cache. * Start submission side cache.
*/ */
static void io_submit_state_start(struct io_submit_state *state, 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); blk_start_plug(&state->plug);
state->free_reqs = 0; state->free_reqs = 0;
...@@ -3480,7 +3480,7 @@ static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr, ...@@ -3480,7 +3480,7 @@ static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr,
return -EBUSY; return -EBUSY;
if (nr > IO_PLUG_THRESHOLD) { if (nr > IO_PLUG_THRESHOLD) {
io_submit_state_start(&state, ctx, nr); io_submit_state_start(&state, nr);
statep = &state; statep = &state;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment