]> 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)
commit574e03c50396802dda74b004e51603342bbc0db3
treefae574f2aeff461ddfa0e95389f4246960643555
parent6d7d85a4301c9f72597cbf42548ec14657101499
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