dlm: drop kobject release callback handling
authorAlexander Aring <aahringo@redhat.com>
Fri, 2 Aug 2024 17:26:42 +0000 (13:26 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 8 Aug 2024 20:15:08 +0000 (15:15 -0500)
commit8a4cf500f1dded74ababd8d33db35631e540e124
treecbc6c760b173e76bc7ee242bfcf5bdae1739cf4b
parentd47b822974b8d4da6f22be5341afd4ce6bca6a9f
dlm: drop kobject release callback handling

This patch removes the releasing of the "struct dlm ls" resource out of
the kobject handling. Instead we run kfree() after kobject_put() of the
lockspace kobject structure that should always being the last put call.
This prepares to split the releasing of all lockspace resources
asynchronously in the background and just deregister everything in
release_lockspace().

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