* 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/
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;