fs: dlm: handle non blocked connect event
authorAlexander Aring <aahringo@redhat.com>
Tue, 3 Nov 2020 01:04:20 +0000 (20:04 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 10 Nov 2020 18:14:20 +0000 (12:14 -0600)
commit19633c7e204b99fe9b952c70b712778b24a8d137
treeeb2aa533a6c92ca44730829f4c04944f0dda4831
parent53a5edaa05c1073e47668f167ec9788383c780e1
fs: dlm: handle non blocked connect event

The manpage of connect shows that in non blocked mode a writeability
indicates successful connection event. This patch is handling this event
inside the writeability callback. In case of SCTP we use blocking
connect functionality which indicates a successful connect when the
function returns with a successful return value.

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