
恩,我的修改也没能很好的解决上下线问题, 动态线程又太复杂,得不偿失,没有好方法前还不如保持现状。 我把补丁4重做一下,它依赖前3个补丁。 感谢review补丁! -- thanks, Gou Hao 在 2022/6/2 19:47, Yu Kuai 写道:
在 2022/06/02 19:24, Gou Hao 写道:
在 2022/6/2 17:10, Yu Kuai 写道:
在 2022/06/02 10:50, Gou Hao 写道:
uniontech inclusion category: bugfix bugzilla: NA CVE: NA
----------------------
We should not get the socket num in init_eufs_fs, becuse system usually supports cpu hotplug,so we should get socket num in dep_int. Hi,
What if cpu is offline during mount, and online afterwards?
Well, in this case, we have to add a monitoring mechanism to
dynamically adjust the number of threads according to the
online status of the CPU.
Or there are other better ways ...
I prefer to keep the current implementation for now.
Thanks, Kuai
Thanks, Kuai
Socket num is not necessarily the same when file system mount,so it shoule be eufs_sb_info's member.
Signed-off-by: Gou Hao <gouhao@uniontech.com> --- fs/eulerfs/dep.c | 28 ++++++++++++++++++++++------ fs/eulerfs/euler.h | 2 -- fs/eulerfs/euler_def.h | 1 + fs/eulerfs/super.c | 15 +-------------- 4 files changed, 24 insertions(+), 22 deletions(-)