Commit a871ea8f authored by Alexander Aring's avatar Alexander Aring Committed by sanglipeng
Browse files

dlm: rearrange async condition return

stable inclusion
from stable-v5.10.190
commit 0f6741acfd5bd221bc5ca2abcfbbd225b103afdb
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0f6741acfd5bd221bc5ca2abcfbbd225b103afdb



--------------------------------

[ Upstream commit a800ba77 ]

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: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
Stable-dep-of: 59e45c75 ("fs: dlm: interrupt posix locks only when process is killed")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent a07f6c1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment