fs: dlm: add missing spin_unlock
authorAlexander Aring <aahringo@redhat.com>
Tue, 1 Aug 2023 18:09:38 +0000 (14:09 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 10 Aug 2023 15:33:03 +0000 (10:33 -0500)
commite717f2e8e4896f4c59a865b11d5cb957b0bfb0e1
treeb185e39148cbdfae615b6b3c35ce1259acdfb633
parentdc52cd2eff4ac924a795efcef27f8fd58a5260bb
fs: dlm: add missing spin_unlock

This patch fixes commit dc52cd2eff4a ("fs: dlm: fix F_CANCELLK to cancel
pending request") that we don't unlock the ops_lock in a rate case when
a waiter cannot be found. This case can only happen when cancellation of
plock operation was successful but no kernel waiter was being found.

Fixes: dc52cd2eff4a ("fs: dlm: fix F_CANCELLK to cancel pending request")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/plock.c