diff options
author | Hao Xu <haoxu@linux.alibaba.com> | 2021-08-12 12:14:35 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-23 13:10:37 -0600 |
commit | f552a27afe67f05c47bb0c33b92af2a23b684c31 (patch) | |
tree | 8912511828074b3ef4892889497fce23a4d5612c /fs/io_uring.c | |
parent | a4aadd11ea4932588e6530ecd021ffe39f9d5adf (diff) | |
download | lwn-f552a27afe67f05c47bb0c33b92af2a23b684c31.tar.gz lwn-f552a27afe67f05c47bb0c33b92af2a23b684c31.zip |
io_uring: remove files pointer in cancellation functions
When doing cancellation, we use a parameter to indicate where it's from
do_exit or exec. So a boolean value is good enough for this, remove the
struct files* as it is not necessary.
Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
[axboe: fixup io_uring_files_cancel for !CONFIG_IO_URING]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 4f5a00707644..7626cad93f60 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -9213,9 +9213,9 @@ static void io_uring_cancel_generic(bool cancel_all, struct io_sq_data *sqd) } } -void __io_uring_cancel(struct files_struct *files) +void __io_uring_cancel(bool cancel_all) { - io_uring_cancel_generic(!files, NULL); + io_uring_cancel_generic(cancel_all, NULL); } static void *io_uring_validate_mmap_request(struct file *file, |