Whamcloud - gitweb
LU-9859 libcfs: don't call unshare_fs_struct()
[fs/lustre-release.git] / lustre / ptlrpc / service.c
index c55f70e..05514cf 100644 (file)
@@ -2746,7 +2746,6 @@ static int ptlrpc_main(void *arg)
 
        thread->t_task = current;
        thread->t_pid = current->pid;
-       unshare_fs_struct();
 
        if (svc->srv_cpt_bind) {
                rc = cfs_cpt_bind(svc->srv_cptable, svcpt->scp_cpt);
@@ -2954,8 +2953,6 @@ static int ptlrpc_hr_main(void *arg)
        if (env == NULL)
                RETURN(-ENOMEM);
 
-       unshare_fs_struct();
-
        rc = cfs_cpt_bind(ptlrpc_hr.hr_cpt_table, hrp->hrp_cpt);
        if (rc != 0) {
                char threadname[20];