struct cl_lock_slice *slice = &oscl->ols_cl;
struct lu_env *env;
int rc;
- __u16 refcheck;
ENTRY;
- env = cl_env_get(&refcheck);
+ env = cl_env_percpu_get();
/* should never happen, similar to osc_ldlm_blocking_ast(). */
LASSERT(!IS_ERR(env));
if (oscl->ols_owner != NULL)
cl_sync_io_note(env, oscl->ols_owner, rc);
- cl_env_put(env, &refcheck);
+ cl_env_percpu_put(env);
RETURN(rc);
}