• J
    io_uring: pass in io_kiocb to fill/add CQ handlers · 78e19bbe
    Jens Axboe 提交于
    This is in preparation for handling CQ ring overflow a bit smarter. We
    should not have any functional changes in this patch. Most of the
    changes are fairly straight forward, the only ones that stick out a bit
    are the ones that change __io_free_req() to take the reference count
    into account. If the request hasn't been submitted yet, we know it's
    safe to simply ignore references and free it. But let's clean these up
    too, as later patches will depend on the caller doing the right thing if
    the completion logging grabs a reference to the request.
    Reviewed-by: NPavel Begunkov <asml.silence@gmail.com>
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    78e19bbe
io_uring.c 108.7 KB