From 25c5a22065ac1fc9a9e0d6c446ec4a5848449f16 Mon Sep 17 00:00:00 2001 From: adilger <adilger> Date: Tue, 8 Jul 2008 18:14:15 +0000 Subject: [PATCH] Branch HEAD Don't print out commit callback messages except when they are increasing the last_committed value. The rest can assume to have been committed. --- lustre/include/obd.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lustre/include/obd.h b/lustre/include/obd.h index 553f2ca631..242d80d71a 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -1504,11 +1504,14 @@ static inline void obd_transno_commit_cb(struct obd_device *obd, __u64 transno, obd->obd_name, transno, error); return; } - CDEBUG(D_HA, "%s: transno "LPU64" committed\n", - obd->obd_name, transno); if (transno > obd->obd_last_committed) { + CDEBUG(D_HA, "%s: transno "LPD64" committed\n", + obd->obd_name, transno); obd->obd_last_committed = transno; ptlrpc_commit_replies (obd); + } else { + CDEBUG(D_INFO, "%s: transno "LPD64" committed\n", + obd->obd_name, transno); } } -- GitLab