diff options
| author | Alexander Aring <aahringo@redhat.com> | 2025-07-23 11:21:52 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-29 14:10:16 +0100 |
| commit | 48a8ae03a404090026e990b53a7f952137249353 (patch) | |
| tree | 72a39dba6e715444c7fa3a0e216f1f79e1f29c16 /fs | |
| parent | 4891bf2b09c313622a6e07d7f108aa5e123c768d (diff) | |
| download | linux-48a8ae03a404090026e990b53a7f952137249353.tar.gz linux-48a8ae03a404090026e990b53a7f952137249353.tar.bz2 linux-48a8ae03a404090026e990b53a7f952137249353.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 1929327ffbe1..ee11a70def92 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -730,7 +730,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); |
