From 63c3e512987308e45005800a7e080ce2a55b1301 Mon Sep 17 00:00:00 2001 From: Amir Shehata Date: Fri, 10 Jun 2016 15:07:06 -0700 Subject: [PATCH] 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 --- lnet/include/lnet/lib-lnet.h | 7 ------- 1 file changed, 7 deletions(-) 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)); } -- 1.8.3.1