Whamcloud - gitweb
LU-4101 mdt: protect internal xattrs
[fs/lustre-release.git] / lustre / obdclass / llog_test.c
index c63fcee..b41ab6f 100644 (file)
@@ -27,7 +27,7 @@
  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2012, Intel Corporation.
+ * Copyright (c) 2012, 2013, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -1017,10 +1017,10 @@ static int llog_test_setup(struct obd_device *obd, struct lustre_cfg *lcfg)
        if (rc)
                RETURN(rc);
 
-       rc = lu_context_init(&test_session, LCT_SESSION);
+       rc = lu_context_init(&test_session, LCT_SERVER_SESSION);
        if (rc)
                GOTO(cleanup_env, rc);
-       test_session.lc_thread = (struct ptlrpc_thread *)cfs_current();
+       test_session.lc_thread = (struct ptlrpc_thread *)current;
        lu_context_enter(&test_session);
        env.le_ses = &test_session;