fs: dlm: fix race in mhandle deletion
authorAlexander Aring <aahringo@redhat.com>
Fri, 11 Jun 2021 16:55:40 +0000 (12:55 -0400)
committerDavid Teigland <teigland@redhat.com>
Fri, 11 Jun 2021 17:44:47 +0000 (12:44 -0500)
commitf5fe8d5107ad68279528f39ceae64ab0d68deb3c
tree9850365d9fbfc024fc6fab14841904ca572b8349
parentd10a0b88751a0954c14e11fd988da00d3b0d5445
fs: dlm: fix race in mhandle deletion

This patch fixes a race between mhandle deletion in case of receiving an
acknowledge and flush of all pending mhandle in cases of an timeout or
resetting node states.

Fixes: 489d8e559c65 ("fs: dlm: add reliable connection if reconnect")
Reported-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/midcomms.c