OSDN Git Service

io_uring: enable READ/WRITE to use deferred completions
authorJens Axboe <axboe@kernel.dk>
Mon, 22 Jun 2020 17:09:46 +0000 (11:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 Jun 2020 13:23:49 +0000 (07:23 -0600)
commita1d7c393c4711a9ce6c239c3ab053a50dc96505a
tree0cb410cd95aab9cce321ad5db08f189b6affc3f3
parent229a7b63507a3e84afb17c3bbb67505a81d28a1d
io_uring: enable READ/WRITE to use deferred completions

A bit more surgery required here, as completions are generally done
through the kiocb->ki_complete() callback, even if they complete inline.
This enables the regular read/write path to use the io_comp_state
logic to batch inline completions.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c