Whamcloud - gitweb
LU-6040 lnet: remove messages from lazy portal on NI shutdown 36/13836/4
authorAmir Shehata <amir.shehata@intel.com>
Sat, 21 Feb 2015 00:05:31 +0000 (16:05 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 8 Mar 2015 11:53:17 +0000 (11:53 +0000)
commitbe215841bff6e278ceb64026e966ede759450de4
tree23c374f39ccc9bce66a815052c2837233b94207d
parentf1a01a403bcb9b0c412cdfcd7b22b083c2c8507d
LU-6040 lnet: remove messages from lazy portal on NI shutdown

When shutting down an NI in a busy system, some messages received
on this NI, might be on the lazy portal.  They would have grabbed
a ref count on the NI.  Therefore NI will not be removed until
messages are processed.

In order to avoid this scenario, when an NI is shutdown go through
all messages queued on the lazy portal and drop messages for the
NI being shutdown

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: I67c8b720a6eb62fded4f084c1acea69dcdc8d2b6
Reviewed-on: http://review.whamcloud.com/13836
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Isaac Huang <he.huang@intel.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/include/lnet/lib-lnet.h
lnet/lnet/api-ni.c
lnet/lnet/lib-ptl.c