Whamcloud - gitweb
LU-5718 o2iblnd: avoid intensive reconnecting 00/14600/6
authorLiang Zhen <liang.zhen@intel.com>
Tue, 25 Aug 2015 16:25:34 +0000 (12:25 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 4 Sep 2015 05:15:30 +0000 (05:15 +0000)
commit5dcc6f68d6ebba0be4e2a7d132d4e28da7a8361e
treeeaf91e73a13063683b988badc3e7432102c5b221
parent0ab2b5f93442f6c4844fadcbca981646624f6474
LU-5718 o2iblnd: avoid intensive reconnecting

When there is connection race between two nodes and one side of
connection is rejected by remote side, o2iblnd will reconnect
immediately, this is going to generate a lot of memory pressure and
even cause OOM if remote side is slow and can't complete connecting
request in short time.

This patch resolves this issue by reconnecting after rejected
connection has been destroyed by connd, so there is no more than
one zombie connection for each peer.

Signed-off-by: Liang Zhen <liang.zhen@intel.com>
Change-Id: I78d3b00be70231d576572832b9b0fba2df3d3c12
Reviewed-on: http://review.whamcloud.com/14600
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/o2iblnd/o2iblnd.h
lnet/klnds/o2iblnd/o2iblnd_cb.c