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, 24 Apr 2022 23:34:16 +0000 (17:34 -0600)
commit60053be859b33f7a381a3f1755db5caffaa3cab8
tree549a2d78804481e18d8448c4a4128587eea38234
parent68ca8fc00277ad04c975c382bd6e2d500e5c7185
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