All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tao Ma <tao.ma@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2/trivial: Add default mask log for heartbeat.c
Date: Tue, 22 Dec 2009 10:04:18 +0800	[thread overview]
Message-ID: <4B302922.3000802@oracle.com> (raw)
In-Reply-To: <4B3025D5.3040503@oracle.com>



Sunil Mushran wrote:
> Tao Ma wrote:
>> Sunil Mushran wrote:
>>> Maybe better if we changed the two mlog(0,... to mlog(ML_HEARTBEAT,...
>>>
>>> Now I don't know why we don't have a default mask in that file but 
>>> instead
>>> have distinct mlogs for HEARTBEAT and HB_BIO. One reason could have 
>>> been to
>>> limit the logging of hb_bio. If that is correct, then adding a 
>>> default mask
>>> will defeat the purpose.
>> yeah, I just got that two mlog(0,...) and tried to find the default 
>> mask and failed. Don't know the real reason for it. Will redo the 
>> patch as you like.
>>
>> But the point I don't get is that why add a default mask will have an 
>> effect on mlog(ML_HB_BIO,...)?
> 
> Reverse. As in, if we make that the default, then the mlogs marked hb_bio
> will also print when we only want heartbeat.
oh, I see. thanks for the explanation.
> 
> Now how does that matter? Probably very little, if at all. But we will be
> revisiting tracing/logging sometime next year. So I would make minimal
> changes in this area right now.
ok, no problem. I will regenerate the patch.

Regards,
Tao

      reply	other threads:[~2009-12-22  2:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-21  6:11 [Ocfs2-devel] [PATCH] ocfs2/trivial: Add default mask log for heartbeat.c Tao Ma
2009-12-21 22:37 ` Sunil Mushran
2009-12-22  1:37   ` Tao Ma
2009-12-22  1:50     ` Sunil Mushran
2009-12-22  2:04       ` Tao Ma [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B302922.3000802@oracle.com \
    --to=tao.ma@oracle.com \
    --cc=ocfs2-devel@oss.oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.