]> git.baikalelectronics.ru Git - kernel.git/commit
fs: dlm: add more midcomms hooks
authorAlexander Aring <aahringo@redhat.com>
Fri, 21 May 2021 19:08:41 +0000 (15:08 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 25 May 2021 14:22:20 +0000 (09:22 -0500)
commitd0f9068d2e42b9147ea9e01765e865f52556a4db
tree3cc4204a0693629e2074cf344280774863b4a21e
parentcaa94671ee4bb8dff8823d3ab5b5a2177264e5e6
fs: dlm: add more midcomms hooks

This patch prepares hooks to redirect to the midcomms layer which will
be used by the midcomms re-transmit handling.

There exists the new concept of stateless buffers allocation and
commits. This can be used to bypass the midcomms re-transmit handling. It
is used by RCOM_STATUS and RCOM_NAMES messages, because they have their
own ping-like re-transmit handling. As well these two messages will be
used to determine the DLM version per node, because these two messages
are per observation the first messages which are exchanged.

Cluster manager events for node membership are added to add support for
half-closed connections in cases that the peer connection get to
an end of file but DLM still holds membership of the node. In
this time DLM can still trigger new message which we should allow. After
the cluster manager node removal event occurs it safe to close the
connection.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/config.c
fs/dlm/lock.c
fs/dlm/lockspace.c
fs/dlm/member.c
fs/dlm/midcomms.c
fs/dlm/midcomms.h
fs/dlm/rcom.c