Whamcloud - gitweb
LU-13972 o2iblnd: Don't retry indefinitely 81/39981/6
authorAmir Shehata <ashehata@whamcloud.com>
Sat, 19 Sep 2020 08:38:07 +0000 (01:38 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 19 Oct 2020 03:13:33 +0000 (03:13 +0000)
commit7c8ad11ef08f0f2f886004ae4a56f67722c16d5c
tree52a02e714119bb9822be24f9e301db44ff856e1f
parent6bdda1ac32e4814b2bef065bfc92152265dd5280
LU-13972 o2iblnd: Don't retry indefinitely

If peer is down don't retry indefinitely. Use the retry_count
parameter to restrict the number of retries. After which the
connection fails and error is propagated up.

This prevents long timeouts when mounting a file system with
nodes which might have their NIDs configured in the FS, but the
nodes have been taken offline.

Test-Parameters: trivial
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I04faf690ed13357e3ed50c2adaadee265db269c7
Reviewed-on: https://review.whamcloud.com/39981
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.h
lnet/klnds/o2iblnd/o2iblnd_cb.c
lnet/klnds/o2iblnd/o2iblnd_modparams.c