]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dlm: rearrange async condition return
authorAlexander Aring <aahringo@redhat.com>
Mon, 4 Apr 2022 20:06:33 +0000 (16:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:28 +0000 (10:22 +0200)
commit97e7a0f8dea2088409adb46c4142e79197d10c81
tree09e33f3b10e3f0f6fb14fd88f7d570f3ede666a4
parent75ce95abc65b341345b6c78de295df06802fdb3d
dlm: rearrange async condition return

[ Upstream commit a800ba77fd285c6391a82819867ac64e9ab3af46 ]

This patch moves the return of FILE_LOCK_DEFERRED a little bit earlier
than checking afterwards again if the request was an asynchronous request.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Stable-dep-of: 59e45c758ca1 ("fs: dlm: interrupt posix locks only when process is killed")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/plock.c