]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/iopoll: unify tw breaking logic
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 8 Sep 2022 15:56:55 +0000 (16:56 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 19:15:01 +0000 (13:15 -0600)
commit42f0ee1597cfdab9a2af29f91ca080204c3f3a2c
tree652defbc3ff3430ed57241736968b4ca04256dfb
parent40b887702ef0cfabb6c244eee27befc3dc5798ad
io_uring/iopoll: unify tw breaking logic

Let's keep checks for whether to break the iopoll loop or not same for
normal and defer tw, this includes ->cached_cq_tail checks guarding
against polling more than asked for.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d2fa8a44f8114f55a4807528da438cde93815360.1662652536.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c