Whamcloud - gitweb
LU-16378 lnet: handles unregister/register events 75/49375/3
authorCyril Bordage <cbordage@whamcloud.com>
Sat, 10 Dec 2022 00:51:16 +0000 (01:51 +0100)
committerCyril Bordage <cbordage@whamcloud.com>
Tue, 13 Dec 2022 18:37:22 +0000 (18:37 +0000)
commit7442710a56a8f38453441c62253c0ad891fe9b8c
tree7d35f2eaee3818c7165557e88ae04fa91b86c017
parente7aa83d105547608130c53c5abc0bb370a1dc1bc
LU-16378 lnet: handles unregister/register events

When network is restarted, devices are unregistered and then
registered again. When a device registers using an index that is
different from the previous one (before network was restarted), LNet
ignores it. Consequently, this device stays with link in fatal state.

To fix that, we catch unregistering events to clear the saved index
value, and when a registering event comes, we save the new value.

Signed-off-by: Cyril Bordage <cbordage@whamcloud.com>
Change-Id: I17e93a1103d588f3e630a9c7446b345f4d472b97
lnet/klnds/socklnd/socklnd.c