OSDN Git Service

io_uring: share completion list w/ per-op space
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jul 2020 20:37:08 +0000 (23:37 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 18:55:44 +0000 (12:55 -0600)
commit3ca405ebfc1c3445b049dd25ca3338cbc99837d1
tree9fbdb13d0191dd287c94f0fad2f82e11e85ab072
parent252917c30f551e8e4377faac81d7fcf8e9629df1
io_uring: share completion list w/ per-op space

Calling io_req_complete(req) means that the request is done, and there
is nothing left but to clean it up. That also means that per-op data
after that should not be used, so we're free to reuse it in completion
path, e.g. to store overflow_list as done in this patch.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c