]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: explicitly catch any illegal async queue attempt
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Jul 2021 17:53:54 +0000 (11:53 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Jul 2021 22:44:51 +0000 (16:44 -0600)
commit2bbd7c725f7a13a78115f1da23685e0456919506
treefae574f2aeff461ddfa0e95389f4246960643555
parent4176214ce825826245e6cdb0c7cb8a4e480176e8
io_uring: explicitly catch any illegal async queue attempt

Catch an illegal case to queue async from an unrelated task that got
the ring fd passed to it. This should not be possible to hit, but
better be proactive and catch it explicitly. io-wq is extended to
check for early IO_WQ_WORK_CANCEL being set on a work item as well,
so it can run the request through the normal cancelation path.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c
fs/io_uring.c