]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: cancel by ->task not pid
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 Jun 2020 07:33:14 +0000 (10:33 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Jun 2020 14:51:38 +0000 (08:51 -0600)
commitadd3def01477f3ba0618742ad4ffb5a3d929ad05
tree2a6101e41c92aeedc98caf42dc301e89fc0eac07
parent5a0a791c651af14c7c70210eb824125674f196cc
io_uring: cancel by ->task not pid

For an exiting process it tries to cancel all its inflight requests. Use
req->task to match such instead of work.pid. We always have req->task
set, and it will be valid because we're matching only current exiting
task.

Also, remove work.pid and everything related, it's useless now.

Reported-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.h
fs/io_uring.c