io_uring: don't flush CQEs deep down the stack
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Jan 2021 13:32:46 +0000 (13:32 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 15:18:37 +0000 (08:18 -0700)
commit3fe8e8cfc997cbb9aa1cb98d7beab2af05025d2d
tree391c92b522d1e808404b4e41fa10dd63c8e6cc89
parent40f28478a3643b8bdd48b8c6ae3fb606de9bd1fe
io_uring: don't flush CQEs deep down the stack

io_submit_flush_completions() is called down the stack in the _state
version of io_req_complete(), that's ok because is only called by
io_uring opcode handler functions directly. Move it up to
__io_queue_sqe() as preparation.

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