io_uring: further deduplicate #CQ events calc
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Jan 2021 13:32:39 +0000 (13:32 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 15:18:37 +0000 (08:18 -0700)
commite81099a62e8b2c34541f944c63e55e84c14536ad
treee432e5699a41a8235061af97bc82bd54fc72ea11
parent05015ebb0f307e9e22325e51d0052301dee8f13c
io_uring: further deduplicate #CQ events calc

Apparently, there is one more place hand coded calculation of number of
CQ events in the ring. Use __io_cqring_events() helper in
io_get_cqring() as well. Naturally, assembly stays identical.

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