]> git.baikalelectronics.ru Git - kernel.git/commit
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, 1 Feb 2021 17:02:42 +0000 (10:02 -0700)
commit4f5cd4d488d7ca9c11651367a24a202317339ac8
tree7c84ca6f2a36d368306468b280030e6aaff80165
parentff6231efd25ea1dc5b0c4c075823c184b2bb607f
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