Whamcloud - gitweb
LU-10391 lnet: use large nids in struct lnet_event
[fs/lustre-release.git] / lustre / mdt / mdt_lib.c
index 89700bb..0fc378b 100644 (file)
@@ -142,7 +142,8 @@ static void ucred_set_jobid(struct mdt_thread_info *info, struct lu_ucred *uc)
 static void ucred_set_nid(struct mdt_thread_info *info, struct lu_ucred *uc)
 {
        if (info && info->mti_exp && info->mti_exp->exp_connection)
-               uc->uc_nid = info->mti_exp->exp_connection->c_peer.nid;
+               uc->uc_nid = lnet_nid_to_nid4(
+                       &info->mti_exp->exp_connection->c_peer.nid);
        else
                uc->uc_nid = LNET_NID_ANY;
 }