io_uring: remove parameter ctx of io_submit_state_start
authorJackie Liu <liuyun01@kylinos.cn>
Mon, 2 Dec 2019 09:14:52 +0000 (17:14 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Dec 2019 14:04:32 +0000 (07:04 -0700)
Parameter ctx we have never used, clean it up.

Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c

index c47a08a..f7985f2 100644 (file)
@@ -3396,7 +3396,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;
@@ -3480,7 +3480,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;
        }