]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: dedup CQE flushing non-empty checks
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 8 Sep 2021 15:40:52 +0000 (16:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:52 +0000 (05:49 -0600)
commitc11ee38009635afd7bd039d68776534f749c46d5
tree0afe93d2fd482987d6dd2fb762808e9d0e02d256
parente5961f214c6be7f9f80e003a2f49779a192199d2
io_uring: dedup CQE flushing non-empty checks

We don't do io_submit_flush_completions() when there is no requests
enqueued, and every single caller checks for it. Hide that check into
the function not forgetting about inlining. That will make it much
easier for changing the empty check condition in the future.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d7ff8cef5da1b38e8ea648f5aad9a315ddfc7b57.1631115443.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c