[Devel] [PATCH RHEL10 COMMIT] fixup! ve/sunrpc/nfsd: containerize kthreads

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jun 5 21:32:27 MSK 2026


The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.29.vz10
------>
commit a153a43979e37fe361504d30d9d84c45cbaf1786
Author: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
Date:   Tue Jun 2 21:10:57 2026 +0000

    fixup! ve/sunrpc/nfsd: containerize kthreads
    
    Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
    Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>
---
 net/sunrpc/svc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index bdafff0fb0855..1a36491114c46 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -811,6 +811,7 @@ svc_start_kthreads(struct svc_serv *serv, struct svc_pool *pool, int nrservs)
 		if (!rqstp)
 			return -ENOMEM;
 
+#ifdef CONFIG_VE
 		if (serv->ve_virtualized) {
 			task = kthread_create_on_node_ve_flags(get_exec_env(),
 					0, serv->sv_threadfn, rqstp,
@@ -820,6 +821,11 @@ svc_start_kthreads(struct svc_serv *serv, struct svc_pool *pool, int nrservs)
 					serv->sv_threadfn, rqstp,
 					node, "%s", serv->sv_name);
 		}
+#else
+		task = kthread_create_on_node(
+				serv->sv_threadfn, rqstp,
+				node, "%s", serv->sv_name);
+#endif
 		if (IS_ERR(task)) {
 			svc_exit_thread(rqstp);
 			return PTR_ERR(task);


More information about the Devel mailing list