OSDN Git Service

io_uring: decouple CQE filling from requests
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 25 Apr 2021 13:32:17 +0000 (14:32 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 25 Apr 2021 16:14:04 +0000 (10:14 -0600)
commitd4d19c19d6ae93f99a57c50ccf6d084213e964bd
treeade619dcfe1966c6103df5655ea890c92ecb511a
parent44b31f2fa2c4b6479a578e74e4ed6bf7ad243955
io_uring: decouple CQE filling from requests

Make __io_cqring_fill_event() agnostic of struct io_kiocb, pass all the
data needed directly into it. Will be used to post rsrc removal
completions, which don't have an associated request.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/c9b8da9e42772db2033547dfebe479dc972a0f2c.1619356238.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c