fs: dlm: fix cleanup pending ops when interrupted
authorAlexander Aring <aahringo@redhat.com>
Fri, 19 May 2023 15:21:25 +0000 (11:21 -0400)
committerDavid Teigland <teigland@redhat.com>
Mon, 22 May 2023 18:49:55 +0000 (13:49 -0500)
commitc847f4e203046a2c93d8a1cf0348315c0b655a60
tree5f2ec343358d6c4c8b448bff3cbbf9f24f9fb5f8
parent92655fbda5c05950a411eaabc19e025e86e2a291
fs: dlm: fix cleanup pending ops when interrupted

Immediately clean up a posix lock request if it is interrupted
while waiting for a result from user space (dlm_controld.)  This
largely reverts the recent commit b92a4e3f86b1 ("fs: dlm: change
posix lock sigint handling"). That previous commit attempted
to defer lock cleanup to the point in time when a result from
user space arrived. The deferred approach was not reliable
because some dlm plock ops may not receive replies.

Cc: stable@vger.kernel.org
Fixes: b92a4e3f86b1 ("fs: dlm: change posix lock sigint handling")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/plock.c