mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:44:45 +01:00
dlm: check for defined force value in dlm_lockspace_release
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>
This commit is contained in:
parent
8f5ae30d69
commit
6af515c9f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue