[Devel] [PATCH VZ9 2/3] fs/fuse kio: dispatch msgs in correct order from the krpc_send kthread

2025-04-04 Thread Liu Kui
The msgs kept in the llist are in reverse order that must be reversed before traversing. Misordered msgs could hit performance severely. Fixes: VSTOR-103577 https://virtuozzo.atlassian.net/browse/VSTOR-103577 Signed-off-by: Liu Kui --- fs/fuse/kio/pcs/pcs_krpc.c | 1 + 1 file changed, 1 inserti

[Devel] [PATCH VZ9 3/3] fs/fuse kio: refactor code related to the 'krpc_send' kthread

2025-04-04 Thread Liu Kui
This patch is purely for code beautification patch that won't affect any functionality. Signed-off-by: Liu Kui --- fs/fuse/kio/pcs/pcs_krpc.c | 66 -- 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/fs/fuse/kio/pcs/pcs_krpc.c b/fs/fuse/kio/pcs/

[Devel] [PATCH VZ9 1/3] fs/fuse kio: properly attach an address space to the krpc_send kthread

2025-04-04 Thread Liu Kui
We need to use kthread_use_mm() to make a kthread operate on an address space. Simply assigning a value to the mm and active_mm field of a kthread's task_struct would race against the scheduler resulting in crash. Fixes: #VSTOR-103399 https://virtuozzo.atlassian.net/browse/VSTOR-103399 Signed-off