fs: dlm: fix connection tcp EOF handling
authorAlexander Aring <aahringo@redhat.com>
Fri, 21 May 2021 19:08:39 +0000 (15:08 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 25 May 2021 14:22:20 +0000 (09:22 -0500)
commit8aa31cbf20ad168c35dd83476629402aacbf5a44
tree87427cf8b658960e296fdf348ac29ba5a955fb2d
parentc6aa00e3d20c2767ba3f57b64eb862572b9744b3
fs: dlm: fix connection tcp EOF handling

This patch fixes the EOF handling for TCP that if and EOF is received we
will close the socket next time the writequeue runs empty. This is a
half-closed socket functionality which doesn't exists in SCTP. The
midcomms layer will do a half closed socket functionality on DLM side to
solve this problem for the SCTP case. However there is still the last ack
flying around but other reset functionality will take care of it if it got
lost.

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