fs: dlm: trace user space callbacks
authorAlexander Aring <aahringo@redhat.com>
Mon, 15 Aug 2022 19:43:24 +0000 (15:43 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 23 Aug 2022 19:54:04 +0000 (14:54 -0500)
commit7a3de7324c2b1299a4f595bb6aa503c878ad7d75
treebcdab8f6ae49a0352c1220a635a8654cb0173298
parent296d9d1e9890830bd149105cf0193c2cf7d5bc86
fs: dlm: trace user space callbacks

This patch adds trace callbacks for user locks. Unfortenately user locks
are handled in a different way than kernel locks in some cases. User
locks never call the dlm_lock()/dlm_unlock() kernel API and use the next
step internal API of dlm. Adding those traces from user API callers
should make it possible for dlm trace system to see lock handling for
user locks as well.

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