fs: dlm: add dst nodeid for msg tracing
authorAlexander Aring <aahringo@redhat.com>
Thu, 17 Nov 2022 22:11:45 +0000 (17:11 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 21 Nov 2022 15:45:49 +0000 (09:45 -0600)
commit17827754e503d6c72b05a1c4603469ec9bf35d48
treef61973b4a8662a67719dc912749348afb9f9dff7
parent81889255c2e6ed1eef448375b5d6330a2f1453de
fs: dlm: add dst nodeid for msg tracing

In DLM when we send a dlm message it is easy to add the lock resource
name, but additional lookup is required when to trace the receive
message side. The idea here is to move the lookup work to the user by
using a lookup to find the right send message with recv message. As note
DLM can't drop any message which is guaranteed by a special session
layer.

For doing the lookup a 3 tupel is required as an unique identification
which is dst nodeid, src nodeid and sequence number. This patch adds the
destination nodeid to the dlm message trace points. The source nodeid is
given by the h_nodeid field inside the header.

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