fs: dlm: change ast and bast trace order
authorAlexander Aring <aahringo@redhat.com>
Wed, 22 Jun 2022 18:45:10 +0000 (14:45 -0400)
committerDavid Teigland <teigland@redhat.com>
Fri, 24 Jun 2022 16:53:06 +0000 (11:53 -0500)
This patch moves the trace calls for ast and bast to before the
ast and bast callback functions are called rather than after.

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

index bfac462dd3e8f13c5b5b7ae06c61e9df71a62426..df25c3e785cf6042f45f498827c861a7ea6c7142 100644 (file)
@@ -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);
                }
        }