From: Amir Shehata Date: Fri, 10 Jun 2016 22:07:06 +0000 (-0700) Subject: LU-7734 lnet: Fix lnet_msg_free() X-Git-Tag: 2.9.53~47^2~18 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=63c3e512987308e45005800a7e080ce2a55b1301 LU-7734 lnet: Fix lnet_msg_free() Remove the ni_decref in lnet_msg_free(), since this function gets called with no lnet_net_lock() held Signed-off-by: Amir Shehata Change-Id: Ibfcbcea25287f4d22ae6146d7aa01f4279ffe969 Reviewed-on: http://review.whamcloud.com/20729 --- diff --git a/lnet/include/lnet/lib-lnet.h b/lnet/include/lnet/lib-lnet.h index b99598a..97ca7a4 100644 --- a/lnet/include/lnet/lib-lnet.h +++ b/lnet/include/lnet/lib-lnet.h @@ -451,13 +451,6 @@ static inline void lnet_msg_free(lnet_msg_t *msg) { LASSERT(!msg->msg_onactivelist); - - /* Make sure we have no references to an NI. */ - if (msg->msg_txni) - lnet_ni_decref_locked(msg->msg_txni, msg->msg_tx_cpt); - if (msg->msg_rxni) - lnet_ni_decref_locked(msg->msg_rxni, msg->msg_rx_cpt); - LIBCFS_FREE(msg, sizeof(*msg)); }