OSDN Git Service

io-wq: add io_wq_cancel_pid() to cancel based on a specific pid
authorJens Axboe <axboe@kernel.dk>
Sun, 9 Feb 2020 02:16:39 +0000 (19:16 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 9 Feb 2020 16:55:38 +0000 (09:55 -0700)
commit36282881a795cbf717aca79392ae9cdf0fef59c9
tree246026127aff05485eccefbe84def6e58f1174ba
parent00bcda13dcbf6bf7fa6f2a5886dd555362de8cfa
io-wq: add io_wq_cancel_pid() to cancel based on a specific pid

Add a helper that allows the caller to cancel work based on what mm
it belongs to. This allows io_uring to cancel work from a given
task or thread when it exits.

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