]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dlm: don't kref_init rsbs created for toss list
authorAlexander Aring <aahringo@redhat.com>
Tue, 28 May 2024 21:12:32 +0000 (17:12 -0400)
committerDavid Teigland <teigland@redhat.com>
Fri, 31 May 2024 16:04:54 +0000 (11:04 -0500)
commita2155402bf0e03a3cd2ba21a6a0d82426379d8e0
treefd8711da782e0fc2cfbf1aaa0d5bee2dee0db681
parentb88b249ba708a36b976bc1635b0b8a3556f1691d
dlm: don't kref_init rsbs created for toss list

This patch removes a kref_init() that isn't necessary because the rsb is
created for toss list. Under toss list the rsb should not have any
reference counting logic. If in theory the rsb gets to into keep list
then a kref_init() for res_ref will be initiated.

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