X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosp%2Fosp_internal.h;h=e65284c7871242e9af28433db1e3ece1534b1933;hp=f9b474a16eaa75e257f3552d3f70272b31b96532;hb=2a620f07e23b3b044f429f049bcc5ffa96f6d844;hpb=b6a278e2c546d476bd7271e80fbdad4ee8d7abe8 diff --git a/lustre/osp/osp_internal.h b/lustre/osp/osp_internal.h index f9b474a..e65284c 100644 --- a/lustre/osp/osp_internal.h +++ b/lustre/osp/osp_internal.h @@ -431,15 +431,7 @@ extern struct lu_context_key osp_thread_key; static inline struct osp_thread_info *osp_env_info(const struct lu_env *env) { - struct osp_thread_info *info; - - info = lu_context_key_get(&env->le_ctx, &osp_thread_key); - if (info == NULL) { - lu_env_refill((struct lu_env *)env); - info = lu_context_key_get(&env->le_ctx, &osp_thread_key); - } - LASSERT(info); - return info; + return lu_env_info(env, &osp_thread_key); } struct osp_txn_info {