We use ->task_pid for exit cancellation, but we need to ensure it's cleared to zero for io_req_work_grab_env() to do the right thing. Fixes: 36282881a795 ("io-wq: add io_wq_cancel_pid() to cancel based on a specific pid") Signed-off-by: Jens Axboe <axboe@xxxxxxxxx> --- diff --git a/fs/io-wq.h b/fs/io-wq.h index ccc7d84af57d..9e9419c08bc1 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -88,6 +88,7 @@ struct io_wq_work { (work)->creds = NULL; \ (work)->fs = NULL; \ (work)->flags = 0; \ + (work)->task_pid = 0; \ } while (0) \ typedef void (get_work_fn)(struct io_wq_work *); -- Jens Axboe