Whamcloud - gitweb
LU-9120 lnet: calculate the lnd timeout 70/32770/15
authorAmir Shehata <amir.shehata@intel.com>
Tue, 26 Jun 2018 03:59:07 +0000 (20:59 -0700)
committerAmir Shehata <ashehata@whamcloud.com>
Fri, 17 Aug 2018 20:11:46 +0000 (20:11 +0000)
commit84f3af43c4bdeb1744736f44cd746dd4b6e8fa6d
tree398e947130efdc9f5261beadb3d4308223b6a627
parent20e23980eae2341c04688b6409442673516cb2c0
LU-9120 lnet: calculate the lnd timeout

Calculate the LND timeout based on the transaction timeout
and the retry count. Both of these are user defined values. Whenever
they are set the lnd timeout is calculated. The LNDs use these
timeouts instead of the LND timeout module parameter.

Retry count can be set to 0, which means no retries. In that case the
LND timeout will default to 5 seconds, which is the same as the
default transaction timeout.

Test-Parameters: forbuildonly
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I5a37caa2b69df155211864735ba8b275fc2d34bb
Reviewed-on: https://review.whamcloud.com/32770
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Sonia Sharma <sharmaso@whamcloud.com>
Tested-by: Jenkins
lnet/include/lnet/lib-lnet.h
lnet/klnds/o2iblnd/o2iblnd_cb.c
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd_cb.c
lnet/lnet/api-ni.c