Whamcloud - gitweb
LU-8887 ptlrpc: remove unused pc->pc_env 61/24061/3
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 1 Dec 2016 09:08:59 +0000 (12:08 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 23 Dec 2016 05:05:44 +0000 (05:05 +0000)
Environment for request interpreters is not used any more.

Change-Id: Id218fa251bb022f2fff11c79adeb83da65fe3088
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-on: https://review.whamcloud.com/24061
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_net.h
lustre/ptlrpc/ptlrpcd.c

index b28477d..833231a 100644 (file)
@@ -1890,10 +1890,6 @@ struct ptlrpcd_ctl {
         */
        char                            pc_name[16];
        /**
-        * Environment for request interpreters to run in.
-        */
-       struct lu_env                   pc_env;
-       /**
         * CPT the thread is bound on.
         */
        int                             pc_cpt;
index 8a05a46..76c9066 100644 (file)
@@ -606,15 +606,6 @@ int ptlrpcd_start(struct ptlrpcd_ctl *pc)
                RETURN(0);
        }
 
-       /*
-        * So far only "client" ptlrpcd uses an environment. In the future,
-        * ptlrpcd thread (or a thread-set) has to be given an argument,
-        * describing its "scope".
-        */
-       rc = lu_context_init(&pc->pc_env.le_ctx, LCT_CL_THREAD|LCT_REMEMBER);
-       if (rc != 0)
-               GOTO(out, rc);
-
        task = kthread_run(ptlrpcd, pc, pc->pc_name);
        if (IS_ERR(task))
                GOTO(out_set, rc = PTR_ERR(task));
@@ -635,8 +626,6 @@ out_set:
                spin_unlock(&pc->pc_lock);
                ptlrpc_set_destroy(set);
        }
-       lu_context_fini(&pc->pc_env.le_ctx);
-out:
        clear_bit(LIOD_START, &pc->pc_flags);
        RETURN(rc);
 }
@@ -670,7 +659,6 @@ void ptlrpcd_free(struct ptlrpcd_ctl *pc)
        }
 
        wait_for_completion(&pc->pc_finishing);
-       lu_context_fini(&pc->pc_env.le_ctx);
 
        spin_lock(&pc->pc_lock);
        pc->pc_set = NULL;