fs: dlm: implement tcp graceful shutdown
authorAlexander Aring <aahringo@redhat.com>
Mon, 27 Jul 2020 13:13:38 +0000 (09:13 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 6 Aug 2020 15:30:54 +0000 (10:30 -0500)
commit055923bf6b48659755b5f0169e34107ee2cb9b68
treecb2ad1614f58a6c96e23192c35d21f78b63b96d8
parentba3ab3ca68caafb7700c4abae357b7fb7538df11
fs: dlm: implement tcp graceful shutdown

During my code inspection I saw there is no implementation of a graceful
shutdown for tcp. This patch will introduce a graceful shutdown for tcp
connections. The shutdown is implemented synchronized as
dlm_lowcomms_stop() is called to end all dlm communication. After shutdown
is done, a lot of flush and closing functionality will be called. However
I don't see a problem with that.

The waitqueue for synchronize the shutdown has a timeout of 10 seconds, if
timeout a force close will be exectued.

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