summaryrefslogtreecommitdiffstats
path: root/fs/io-wq.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-06-15 10:33:14 +0300
committerJens Axboe <axboe@kernel.dk>2020-06-15 08:51:38 -0600
commit801dd57bd1d8c2c253f43635a3045bfa32a810b3 (patch)
tree2a6101e41c92aeedc98caf42dc301e89fc0eac07 /fs/io-wq.h
parent4dd2824d6d5914949b5fe589538bc2622d84c5dd (diff)
downloadlinux-stable-801dd57bd1d8c2c253f43635a3045bfa32a810b3.tar.gz
linux-stable-801dd57bd1d8c2c253f43635a3045bfa32a810b3.tar.bz2
linux-stable-801dd57bd1d8c2c253f43635a3045bfa32a810b3.zip
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>
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r--fs/io-wq.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h
index b72538fe5afd..071f1a997800 100644
--- a/fs/io-wq.h
+++ b/fs/io-wq.h
@@ -90,7 +90,6 @@ struct io_wq_work {
const struct cred *creds;
struct fs_struct *fs;
unsigned flags;
- pid_t task_pid;
};
static inline struct io_wq_work *wq_next_work(struct io_wq_work *work)