summaryrefslogtreecommitdiffstats
path: root/fs/dlm/ast.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2021-11-02 15:17:14 -0400
committerDavid Teigland <teigland@redhat.com>2021-11-02 14:39:20 -0500
commit2f05ec4327ffaa34877de67fc5bb5eb3ab3767f0 (patch)
treeaa657dcf488b0e4b3e2bfa783118e994ab1982bf /fs/dlm/ast.c
parente10249b1902d3b0b71e99f518a695c2c39ab4fe6 (diff)
downloadlinux-stable-2f05ec4327ffaa34877de67fc5bb5eb3ab3767f0.tar.gz
linux-stable-2f05ec4327ffaa34877de67fc5bb5eb3ab3767f0.tar.bz2
linux-stable-2f05ec4327ffaa34877de67fc5bb5eb3ab3767f0.zip
fs: dlm: make dlm_callback_resume quite
This patch makes dlm_callback_resume info printout less noisy by accumulate all callback queues into one printout not in 25 times steps. It seems this printout became lately quite noisy in relationship with gfs2. Before: [241767.849302] dlm: bin: dlm_callback_resume 25 [241767.854846] dlm: bin: dlm_callback_resume 25 [241767.860373] dlm: bin: dlm_callback_resume 25 ... [241767.865920] dlm: bin: dlm_callback_resume 25 [241767.871352] dlm: bin: dlm_callback_resume 25 [241767.876733] dlm: bin: dlm_callback_resume 25 After the patch: [ 385.485728] dlm: gfs2: dlm_callback_resume 175 if zero it will not be printed out. Reported-by: Barry Marson <bmarson@redhat.com> Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/ast.c')
-rw-r--r--fs/dlm/ast.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c
index 283c7b94edda..6600930497cc 100644
--- a/fs/dlm/ast.c
+++ b/fs/dlm/ast.c
@@ -295,7 +295,7 @@ void dlm_callback_suspend(struct dlm_ls *ls)
void dlm_callback_resume(struct dlm_ls *ls)
{
struct dlm_lkb *lkb, *safe;
- int count = 0;
+ int count = 0, sum = 0;
clear_bit(LSFL_CB_DELAY, &ls->ls_flags);
@@ -313,12 +313,14 @@ more:
}
mutex_unlock(&ls->ls_cb_mutex);
- if (count)
- log_rinfo(ls, "dlm_callback_resume %d", count);
+ sum += count;
if (count == MAX_CB_QUEUE) {
count = 0;
cond_resched();
goto more;
}
+
+ if (sum)
+ log_rinfo(ls, "%s %d", __func__, sum);
}