diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-10-30 09:37:30 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-11-04 10:22:56 -0700 |
commit | fdaf083cdfb556a45c422c8998268baf1ab26829 (patch) | |
tree | f9320271cdcca727ca356b38c6159436412752f9 /include | |
parent | 3dd1680d1418f22f7ddaf98a4eab66285a099b3e (diff) | |
download | linux-stable-fdaf083cdfb556a45c422c8998268baf1ab26829.tar.gz linux-stable-fdaf083cdfb556a45c422c8998268baf1ab26829.tar.bz2 linux-stable-fdaf083cdfb556a45c422c8998268baf1ab26829.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/io_uring.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h index 868364cea3b7..35b2d845704d 100644 --- a/include/linux/io_uring.h +++ b/include/linux/io_uring.h @@ -30,7 +30,8 @@ struct io_uring_task { struct percpu_counter inflight; struct io_identity __identity; struct io_identity *identity; - bool in_idle; + atomic_t in_idle; + bool sqpoll; }; #if defined(CONFIG_IO_URING) |