Commit 9ac273ae authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/rw: use io_rw_recycle() from cleanup path



Cleanup should always have the uring lock held, it's safe to recycle
from here.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2a51c327
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -434,7 +434,8 @@ int io_read_mshot_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)

void io_readv_writev_cleanup(struct io_kiocb *req)
{
	io_rw_iovec_free(req->async_data);
	lockdep_assert_held(&req->ctx->uring_lock);
	io_rw_recycle(req, 0);
}

static inline loff_t *io_kiocb_update_pos(struct io_kiocb *req)