Whamcloud - gitweb
LU-6002 lnet: startup acceptor thread dynamically 10/13010/5
authorAmir Shehata <amir.shehata@intel.com>
Tue, 13 Jan 2015 01:14:33 +0000 (17:14 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 19 Jan 2015 17:48:36 +0000 (17:48 +0000)
commit91df044a6bc06cf41f876843302c536cb18d39ca
tree3db928047c400c60e55b339518dfd2a257678842
parent2bc5bcb7efa247fcd8cc65d013ffc9f6c33dd788
LU-6002 lnet: startup acceptor thread dynamically

With DLC it's possible to start up a system with no NIs that require
the acceptor thread, and thus it won't start.  Later on the user
can add an NI that requires the acceptor thread to start, it is
then necessary to start it up.

If the user removes a NI and as a result there are no more
NIs that require the acceptor thread then it should be stopped.
This patch adds logic in the dynamically adding and removing NIs
code to ensure the above logic is implemented.

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: Iecada597d417dcb8991e9fb98f6844382295246a
Reviewed-on: http://review.whamcloud.com/13010
Tested-by: Jenkins
Reviewed-by: Isaac Huang <he.huang@intel.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/lnet/acceptor.c
lnet/lnet/api-ni.c