io_uring: separate DRAIN flushing into a cold path
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 26 May 2020 17:34:05 +0000 (20:34 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 May 2020 19:31:09 +0000 (13:31 -0600)
commit0451894522108d6c72934aff6ef89023743a9ed4
tree39ff33d7b3507609ddb89cda8f6faba412f8d8a8
parent56080b02ed6e71fbc0add2d05a32ed7361dd736a
io_uring: separate DRAIN flushing into a cold path

io_commit_cqring() assembly doesn't look good with extra code handling
drained requests. IOSQE_IO_DRAIN is slow and discouraged to be used in
a hot path, so try to minimise its impact by putting it into a helper
and doing a fast check.

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