summaryrefslogtreecommitdiff
path: root/fs/io-wq.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-10-14 19:12:37 +0300
committerJens Axboe <axboe@kernel.dk>2020-10-17 18:25:45 +0300
commitdfead8a8e2c494b947480bac90a6f9792f08bc12 (patch)
tree9cf7e7f8783ca02f1982ce7c30a48d9f1f4c0f34 /fs/io-wq.c
parent0f203765880c4416675726be558b65da4a7604e2 (diff)
downloadlinux-dfead8a8e2c494b947480bac90a6f9792f08bc12.tar.xz
io_uring: rely solely on work flags to determine personality.
We solely rely on work->work_flags now, so use that for proper checking and clearing/dropping of various identity items. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.c')
-rw-r--r--fs/io-wq.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/io-wq.c b/fs/io-wq.c
index e636898f8a1f..b7d8e544a804 100644
--- a/fs/io-wq.c
+++ b/fs/io-wq.c
@@ -429,14 +429,10 @@ static void io_wq_switch_mm(struct io_worker *worker, struct io_wq_work *work)
mmput(worker->mm);
worker->mm = NULL;
}
- if (!work->mm)
- return;
if (mmget_not_zero(work->mm)) {
kthread_use_mm(work->mm);
worker->mm = work->mm;
- /* hang on to this mm */
- work->mm = NULL;
return;
}