]> git.baikalelectronics.ru Git - kernel.git/commit
fs: dlm: add lkb debugfs functionality
authorAlexander Aring <aahringo@redhat.com>
Tue, 2 Nov 2021 19:17:22 +0000 (15:17 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 2 Nov 2021 19:39:20 +0000 (14:39 -0500)
commitdacdc793b7a6327d37694ce0e03b8aa0c2e12541
tree625e793892847c011c09d84cd6590e381840f3b3
parent97d2ac8a3421171f5936c87d48e72c44ed0e9412
fs: dlm: add lkb debugfs functionality

This patch adds functionality to add an lkb during runtime. This is a
highly debugging feature only, wrong input can crash the kernel. It is a
early state feature as well. The goal is to provide a user interface for
manipulate dlm state and combine it with the rawmsg feature. It is
debugfs functionality, we don't care about UAPI breakage. Even it's
possible to add lkb's/rsb's which could never be exists in such wat by
using normal DLM operation. The user of this interface always need to
think before using this feature, not every crash which happens can really
occur during normal dlm operation.

Future there should be more functionality to add a more realistic lkb
which reflects normal DLM state inside the kernel. For now this is
enough.

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