io_uring: remove extra ifs around io_commit_cqring
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 21 Mar 2022 22:02:20 +0000 (22:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 17 Apr 2022 22:51:24 +0000 (16:51 -0600)
commit7e2d845fdc5dbd5796c9a2b0da5e2d45fdf8ae5c
tree9361e4f9671e25ac5b165c0d09b8f2334131078f
parent39014f9b13b308e56b31f0b2f3009bc81a86fc84
io_uring: remove extra ifs around io_commit_cqring

Now io_commit_cqring() is simple and it tolerates well being called
without a new CQE filled, so kill a bunch of not needed anymore
guards.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/36aed692dff402bba00a444a63a9cd2e97a340ea.1647897811.git.asml.silence@gmail.com
[axboe: fold in followup fix]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c