Whamcloud - gitweb
LU-13972 o2iblnd: Don't retry indefinitely 11/42011/2
authorAmir Shehata <ashehata@whamcloud.com>
Thu, 11 Mar 2021 19:45:37 +0000 (11:45 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Mar 2021 23:21:23 +0000 (23:21 +0000)
commit6d2aae7396cfcc37873effa137f8e0cc437132ff
tree71483412124132c39bcd83ef9351260afe64541c
parent1da8349175a136df0aadb28ae0e0f64ac0385961
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.

Lustre-change: https://review.whamcloud.com/39981
Lustre-commit: 7c8ad11ef08f0f2f886004ae4a56f67722c16d5c

Test-Parameters: trivial
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I4238323f0629f005c651adba4b384b98546514d0
Reviewed-on: https://review.whamcloud.com/42011
Tested-by: jenkins <devops@whamcloud.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