commit | 3bdd9839005900440c7f74aafa476db48e6e9985 | [log] [tgz] |
---|---|---|
author | Marcelo Diop-Gonzalez <marcelo827@gmail.com> | Thu Dec 03 11:07:06 2020 -0500 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Dec 07 08:39:24 2020 -0700 |
tree | 74ebde49c4f24d933b04643712e1bcb3fc4a370e | |
parent | 2f4254d6885ea4ed72de05449e82d31afd5f7855 [diff] |
Don't enter the kernel to wait on cqes if they are already available. In _io_uring_get_cqe(), if we can see from userspace that there are already wait_nr cqes available, then there is no need to call __sys_io_uring_enter2 (unless we have to submit IO or flush overflow), since the kernel will just end up returning immediately after performing the same check, anyway. Signed-off-by: Marcelo Diop-Gonzalez <marcelo827@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>