]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: flush overflowed CQ events in the io_uring_poll()
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 7 Feb 2020 12:18:28 +0000 (13:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Feb 2020 20:06:58 +0000 (13:06 -0700)
commit4befd8e3b97f641cce08c1b1fc27d4899a704916
tree03881aa43362cda36af3f669d5da499563a37b0c
parent8db9b7312f597b78f16896850532c1a4188459cd
io_uring: flush overflowed CQ events in the io_uring_poll()

In io_uring_poll() we must flush overflowed CQ events before to
check if there are CQ events available, to avoid missing events.

We call the io_cqring_events() that checks and flushes any overflow
and returns the number of CQ events available.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c