io_uring: remove 'ctx' from SQPOLL waitqueue when ctx is going away
authorJens Axboe <axboe@kernel.dk>
Thu, 10 Sep 2020 17:50:39 +0000 (11:50 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Sep 2020 11:00:01 +0000 (05:00 -0600)
commite2384342e6be629bf4e01fc24e74cfd3a722bd27
tree97752a09e374c6e912007b72717f2fe8bb7b309c
parent46c830a2452c348bacec0edf1cb45b37e3058b2a
io_uring: remove 'ctx' from SQPOLL waitqueue when ctx is going away

We remove ourselves from the sqd ctx list, but we could also be on
the wait list. Ensure we prune the ctx from that wait list as well.

Fixes: 01c88257dc2a ("io_uring: base SQPOLL handling off io_sq_data")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c