commit | e23de15fdbd3070446b2d212373c0ae556f63d93 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Dec 17 00:24:37 2020 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Dec 17 08:40:52 2020 -0700 |
tree | 2cd3742152ed775b029405d138a7b7aaae97e7fa | |
parent | 9cd2be519d05ee78876d55e8e902b7125f78b74f [diff] |
io_uring: consolidate CQ nr events calculation Add a helper which calculates number of events in CQ. Handcoded version of it in io_cqring_overflow_flush() is not the clearest thing, so it makes it slightly more readable. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>