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, 1 Feb 2021 17:02:42 +0000 (10:02 -0700)
commit9affd664f0e0512d8997dbdddb1448a4faf9bc82
tree69504bfc48aa05eed32f6c3b3919fa90667d1915
parenta38d68db6742c19a74141c0f56785ef67f51c504
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