+void mdt_thread_info_reset(struct mdt_thread_info *info)
+{
+ memset(&info->mti_attr, 0, sizeof(info->mti_attr));
+ info->mti_body = NULL;
+ info->mti_dlm_req = NULL;
+ info->mti_cross_ref = 0;
+ info->mti_opdata = 0;
+ info->mti_big_lmm_used = 0;
+ info->mti_big_acl_used = 0;
+ info->mti_som_strict = 0;
+
+ info->mti_spec.no_create = 0;
+ info->mti_spec.sp_rm_entry = 0;
+ info->mti_spec.sp_permitted = 0;
+
+ info->mti_spec.u.sp_ea.eadata = NULL;
+ info->mti_spec.u.sp_ea.eadatalen = 0;
+
+ if (info->mti_batch_env && info->mti_object != NULL) {
+ mdt_object_put(info->mti_env, info->mti_object);
+ info->mti_object = NULL;
+ }
+}
+