]> git.baikalelectronics.ru Git - kernel.git/commit
fs: dlm: move kref_put assert for lkb structs
authorAlexander Aring <aahringo@redhat.com>
Fri, 24 Jun 2022 01:28:58 +0000 (21:28 -0400)
committerDavid Teigland <teigland@redhat.com>
Mon, 1 Aug 2022 14:31:46 +0000 (09:31 -0500)
commite43ac9a2a7ae0b23104362f3430923fc2c685edd
tree1f1e73b26254d944769759cad98ce9c349d1194f
parent1efc86f1b3c64a7b0c58070c813a038e6a80ffc8
fs: dlm: move kref_put assert for lkb structs

The unhold_lkb() function decrements the lock's kref, and
asserts that the ref count was not the final one.  Use the
kref_put release function (which should not be called) to
call the assert, rather than doing the assert based on the
kref_put return value.  Using kill_lkb() as the release
function doesn't make sense if we only want to assert.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c