fs: dlm: reconnect if socket error report occurs
authorAlexander Aring <aahringo@redhat.com>
Fri, 21 May 2021 19:08:37 +0000 (15:08 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 25 May 2021 14:22:20 +0000 (09:22 -0500)
commitba868d9deaab2bb1c09e50650127823925154802
tree28af665fb64f61b58239d6df3c4549ed969f087b
parent7443bc962509912c70c587db71449daff26b9678
fs: dlm: reconnect if socket error report occurs

This patch will change the reconnect handling that if an error occurs
if a socket error callback is occurred. This will also handle reconnects
in a non blocking connecting case which is currently missing. If error
ECONNREFUSED is reported we delay the reconnect by one second.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c