]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: dlm: interrupt posix locks only when process is killed
authorAlexander Aring <aahringo@redhat.com>
Fri, 19 May 2023 15:21:26 +0000 (11:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:28 +0000 (10:22 +0200)
commit354cdda79a774c2242e80924e70532904e270609
treec9aba0732fdcfb70542730fee7a478b3a04fc2a4
parent97e7a0f8dea2088409adb46c4142e79197d10c81
fs: dlm: interrupt posix locks only when process is killed

[ Upstream commit 59e45c758ca1b9893ac923dd63536da946ac333b ]

If a posix lock request is waiting for a result from user space
(dlm_controld), do not let it be interrupted unless the process
is killed. This reverts commit a6b1533e9a57 ("dlm: make posix locks
interruptible"). The problem with the interruptible change is
that all locks were cleared on any signal interrupt. If a signal
was received that did not terminate the process, the process
could continue running after all its dlm posix locks had been
cleared. A future patch will add cancelation to allow proper
interruption.

Cc: stable@vger.kernel.org
Fixes: a6b1533e9a57 ("dlm: make posix locks interruptible")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/plock.c