summaryrefslogtreecommitdiff
path: root/fs/dlm/midcomms.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-10-27 16:45:15 -0400
committerDavid Teigland <teigland@redhat.com>2022-11-08 12:59:41 -0600
commite01c4b7bd41522ae0299c07e2ee8c721fee02595 (patch)
tree28f0f0a773a1a56c3a285c52a24bbe4254b98855 /fs/dlm/midcomms.h
parent5b787667e87a373a2f8f70e6be2b5d99c408462f (diff)
downloadlinux-rpi-e01c4b7bd41522ae0299c07e2ee8c721fee02595.tar.gz
linux-rpi-e01c4b7bd41522ae0299c07e2ee8c721fee02595.tar.bz2
linux-rpi-e01c4b7bd41522ae0299c07e2ee8c721fee02595.zip
fd: dlm: trace send/recv of dlm message and rcom
This patch adds tracepoints for send and recv cases of dlm messages and dlm rcom messages. In case of send and dlm message we add the dlm rsb resource name this dlm messages belongs to. This has the advantage to follow dlm messages on a per lock basis. In case of recv message the resource name can be extracted by follow the send message sequence number. The dlm message DLM_MSG_PURGE doesn't belong to a lock request and will not set the resource name in a dlm_message trace. The same for all rcom messages. There is additional handling required for this debugging functionality which is tried to be small as possible. Also the midcomms layer gets aware of lock resource names, for now this is required to make a connection between sequence number and lock resource names. It is for debugging purpose only. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/midcomms.h')
-rw-r--r--fs/dlm/midcomms.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dlm/midcomms.h b/fs/dlm/midcomms.h
index 82bcd9661922..d6286e80b077 100644
--- a/fs/dlm/midcomms.h
+++ b/fs/dlm/midcomms.h
@@ -17,7 +17,8 @@ struct midcomms_node;
int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int buflen);
struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len,
gfp_t allocation, char **ppc);
-void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh);
+void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh, const void *name,
+ int namelen);
int dlm_midcomms_close(int nodeid);
int dlm_midcomms_start(void);
void dlm_midcomms_shutdown(void);