Whamcloud - gitweb
LU-3806 obdclass: add LCT_SERVER_SESSION for server session
[fs/lustre-release.git] / lustre / include / obd_class.h
index 378ab30..fe1eccc 100644 (file)
@@ -565,7 +565,7 @@ static inline int obd_setup(struct obd_device *obd, struct lustre_cfg *cfg)
         if (ldt != NULL) {
                 struct lu_context  session_ctx;
                 struct lu_env env;
-                lu_context_init(&session_ctx, LCT_SESSION);
+                lu_context_init(&session_ctx, LCT_SESSION | LCT_SERVER_SESSION);
                 session_ctx.lc_thread = NULL;
                 lu_context_enter(&session_ctx);