Commit 2334b1a9 authored by Li Lingfeng's avatar Li Lingfeng Committed by Jialin Zhang
Browse files

Revert "[Huawei] io-wq: Switch io_wqe_worker's fs before releasing request"

Offering: HULK
hulk inclusion
category: feature
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I6BTWC



-------------------------------

This reverts commit 00bb60b9.

We need to apply patch 788d0824269bef (io_uring: import 5.15-stable
io_uring) to move io_uring to separate directory and solve
the problem of CVE-2023-0240.
Revert this patch and add it again after patch 788d0824269bef to
reduce conflicts.

Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
Reviewed-by: default avatarZhang Yi <yi.zhang@huawei.com>
Reviewed-by: default avatarWang Weiyang <wangweiyang2@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent cb0861ae
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -578,8 +578,6 @@ 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)