io_uring: make ctx cancel on exit targeted to actual ctx
authorJens Axboe <axboe@kernel.dk>
Sun, 20 Dec 2020 17:45:02 +0000 (10:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 20 Dec 2020 17:45:02 +0000 (10:45 -0700)
commit00c18640c2430c4bafaaeede1f9dd6f7ec0e4b25
tree3f6d2c580df111ebd1cd54b339cb5efdb8336212
parentdd20166236953c8cd14f4c668bf972af32f0c6be
io_uring: make ctx cancel on exit targeted to actual ctx

Before IORING_SETUP_ATTACH_WQ, we could just cancel everything on the
io-wq when exiting. But that's not the case if they are shared, so
cancel for the specific ctx instead.

Cc: stable@vger.kernel.org
Fixes: 24369c2e3bb0 ("io_uring: add io-wq workqueue sharing")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c