cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH dlm/next 1/3] fs: change ast and bast trace order
@ 2022-05-30 14:55 Alexander Aring
  2022-05-30 14:55 ` [Cluster-devel] [PATCH dlm/next 2/3] fs: remove additional dereference of lkbsb Alexander Aring
  2022-05-30 14:55 ` [Cluster-devel] [PATCH dlm/next 3/3] fs: dlm: add resource name to tracepoints Alexander Aring
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Aring @ 2022-05-30 14:55 UTC (permalink / raw)
  To: cluster-devel.redhat.com

This patch changes the order to call trace functionality before calling
the traced callback. The intention is always to see at first that a dlm
callback occurred and then optionally see dlm user traces in the ast or
bast callback. Currently the behaviour is vice versa, the user sees that
dlm ast or bast callback occurred after the dlm user callback for ast or
bast was called.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
---
 fs/dlm/ast.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c
index bfac462dd3e8..df25c3e785cf 100644
--- a/fs/dlm/ast.c
+++ b/fs/dlm/ast.c
@@ -255,13 +255,13 @@ void dlm_callback_work(struct work_struct *work)
 		if (callbacks[i].flags & DLM_CB_SKIP) {
 			continue;
 		} else if (callbacks[i].flags & DLM_CB_BAST) {
-			bastfn(lkb->lkb_astparam, callbacks[i].mode);
 			trace_dlm_bast(ls, lkb, callbacks[i].mode);
+			bastfn(lkb->lkb_astparam, callbacks[i].mode);
 		} else if (callbacks[i].flags & DLM_CB_CAST) {
 			lkb->lkb_lksb->sb_status = callbacks[i].sb_status;
 			lkb->lkb_lksb->sb_flags = callbacks[i].sb_flags;
-			castfn(lkb->lkb_astparam);
 			trace_dlm_ast(ls, lkb, lkb->lkb_lksb);
+			castfn(lkb->lkb_astparam);
 		}
 	}
 
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-01  4:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-30 14:55 [Cluster-devel] [PATCH dlm/next 1/3] fs: change ast and bast trace order Alexander Aring
2022-05-30 14:55 ` [Cluster-devel] [PATCH dlm/next 2/3] fs: remove additional dereference of lkbsb Alexander Aring
2022-05-30 14:55 ` [Cluster-devel] [PATCH dlm/next 3/3] fs: dlm: add resource name to tracepoints Alexander Aring
2022-05-30 15:11   ` Alexander Aring
2022-06-01  4:02   ` Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).