]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: properly handle SQPOLL request cancelations
authorJens Axboe <axboe@kernel.dk>
Fri, 30 Oct 2020 15:37:30 +0000 (09:37 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Nov 2020 17:22:56 +0000 (10:22 -0700)
commit236cb4df5c1c522472241135e0fac85b4509ba60
treef9320271cdcca727ca356b38c6159436412752f9
parent0127c7996f8ac1c71e8d0d9d74fd9ef536ac68d9
io_uring: properly handle SQPOLL request cancelations

Track if a given task io_uring context contains SQPOLL instances, so we
can iterate those for cancelation (and request counts). This ensures that
we properly wait on SQPOLL contexts, and find everything that needs
canceling.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/io_uring.h