diff --git a/fs/io-wq.c b/fs/io-wq.c index 3d5fc76b92d0143f121fc91b43dc8fbefeca92df..56d00f31003b1296cf4cc06a7c41ea52146c58ee 100644 --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -578,6 +578,8 @@ static void io_worker_handle_work(struct io_worker *worker) linked = NULL; } io_assign_current_work(worker, work); + if (current->fs != worker->restore_fs) + current->fs = worker->restore_fs; wq->free_work(old_work); if (linked)