summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2025-07-23 11:21:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-29 14:01:20 +0100
commitfb9201856589da1f8e9a48f7852eef1b8cbac0a3 (patch)
treec5b65b8a5cc4180a1e03cb846ec00e0a9c88c261 /fs
parentb07630afe1671096dc64064190cae3b6165cf6e4 (diff)
downloadlinux-fb9201856589da1f8e9a48f7852eef1b8cbac0a3.tar.gz
linux-fb9201856589da1f8e9a48f7852eef1b8cbac0a3.tar.bz2
linux-fb9201856589da1f8e9a48f7852eef1b8cbac0a3.zip
dlm: check for defined force value in dlm_lockspace_release
[ Upstream commit 6af515c9f3ccec3eb8a262ca86bef2c499d07951 ] Force values over 3 are undefined, so don't treat them as 3. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/dlm/lockspace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c
index 624617c12250..db33e521556e 100644
--- a/fs/dlm/lockspace.c
+++ b/fs/dlm/lockspace.c
@@ -783,7 +783,7 @@ static int release_lockspace(struct dlm_ls *ls, int force)
dlm_device_deregister(ls);
- if (force < 3 && dlm_user_daemon_available())
+ if (force != 3 && dlm_user_daemon_available())
do_uevent(ls, 0);
dlm_recoverd_stop(ls);