commit | 516e913eaeec0add5213dc7d0ea38c61fd2b80b6 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Feb 11 23:08:13 2021 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Feb 11 16:43:44 2021 -0700 |
tree | 0fd5600fc70d4bbd2fcf3310a6eb4d13629a848d | |
parent | 51e6622bbe53f4957bbf3b4cfccf02b5139bb1ea [diff] |
src/queue: control kernel enter with a var We check twice for all entering conditions in _io_uring_get_cqe(), first to set flags, and the second to potentially break the loop. Save it into a need_enter var. Also, don't set IORING_ENTER_GETEVENTS when there is already enough of events in the CQ. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>