Signed-off-by: Vladimir Riabchun <[email protected]>
---
 net/sunrpc/svc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index bdafff0fb085..1a36491114c4 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);
-- 
2.47.1

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to