summaryrefslogtreecommitdiffstats
path: root/fs/io-wq.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-07-15 11:46:52 +0200
committerJens Axboe <axboe@kernel.dk>2020-07-24 21:00:44 +0200
commit57f1a64958543fe18a7fe0addbfb31bb2ceeaea2 (patch)
tree273c83477c1e50f57b5977716d7af23e3f2e5a83 /fs/io-wq.c
parentio_uring: alloc ->io in io_req_defer_prep() (diff)
downloadlinux-57f1a64958543fe18a7fe0addbfb31bb2ceeaea2.tar.xz
linux-57f1a64958543fe18a7fe0addbfb31bb2ceeaea2.zip
io_uring/io-wq: move RLIMIT_FSIZE to io-wq
RLIMIT_SIZE in needed only for execution from an io-wq context, hence move all preparations from hot path to io-wq work setup. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.c')
-rw-r--r--fs/io-wq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/io-wq.c b/fs/io-wq.c
index 72f759e1d6eb..8702d3c3b291 100644
--- a/fs/io-wq.c
+++ b/fs/io-wq.c
@@ -462,6 +462,7 @@ static void io_impersonate_work(struct io_worker *worker,
io_wq_switch_mm(worker, work);
if (worker->cur_creds != work->creds)
io_wq_switch_creds(worker, work);
+ current->signal->rlim[RLIMIT_FSIZE].rlim_cur = work->fsize;
}
static void io_assign_current_work(struct io_worker *worker,