Whamcloud - gitweb
LU-7734 lnet: Fix lnet_msg_free()
authorAmir Shehata <amir.shehata@intel.com>
Fri, 10 Jun 2016 22:07:06 +0000 (15:07 -0700)
committerAmir Shehata <amir.shehata@intel.com>
Wed, 25 Jan 2017 03:10:16 +0000 (19:10 -0800)
Remove the ni_decref in lnet_msg_free(), since this function
gets called with no lnet_net_lock() held

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: Ibfcbcea25287f4d22ae6146d7aa01f4279ffe969
Reviewed-on: http://review.whamcloud.com/20729

lnet/include/lnet/lib-lnet.h

index b99598a..97ca7a4 100644 (file)
@@ -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));
 }