Whamcloud - gitweb
LU-12201 lnet: detach response tracker
[fs/lustre-release.git] / lnet / lnet / lib-msg.c
index be2f94a..74491a2 100644 (file)
@@ -774,13 +774,7 @@ lnet_msg_detach_md(struct lnet_msg *msg, int cpt, int status)
        }
 
        if (unlink) {
-               /*
-                * if this is an ACK or a REPLY then make sure to remove the
-                * response tracker.
-                */
-               if (msg->msg_ev.type == LNET_EVENT_REPLY ||
-                   msg->msg_ev.type == LNET_EVENT_ACK)
-                       lnet_detach_rsp_tracker(msg->msg_md, cpt);
+               lnet_detach_rsp_tracker(md, cpt);
                lnet_md_unlink(md);
        }