aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorGravatar Alexander Aring <aahringo@redhat.com> 2023-01-12 17:18:42 -0500
committerGravatar David Teigland <teigland@redhat.com> 2023-01-23 14:36:37 -0600
commit54fbe0c15d9a8072e2db7f6765f50c995834e2d7 (patch)
treec2ecf18fc518e674fa53ae6dec6fb06aa9e271c0 /samples
parentfs: dlm: send FIN ack back in right cases (diff)
downloadlinux-54fbe0c15d9a8072e2db7f6765f50c995834e2d7.tar.gz
linux-54fbe0c15d9a8072e2db7f6765f50c995834e2d7.tar.bz2
linux-54fbe0c15d9a8072e2db7f6765f50c995834e2d7.zip
fs: dlm: bring back previous shutdown handling
This patch mostly reverts commit 4f567acb0b86 ("fs: dlm: remove socket shutdown handling"). There can be situations where the dlm midcomms nodes hash and lowcomms connection hash are not equal, but we need to guarantee that the lowcomms are all closed on a last release of a dlm lockspace, when a shutdown is invoked. This patch guarantees that we always close all sockets managed by the lowcomms connection hash, and calls shutdown for the last message sent. This ensures we don't cut the socket, which could cause the peer to get a connection reset. In future we should try to merge the midcomms/lowcomms hashes into one hash and not handle both in separate hashes. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions