All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] ocfs2/trivial: Add default mask log for heartbeat.c
@ 2009-12-21  6:11 Tao Ma
  2009-12-21 22:37 ` Sunil Mushran
  0 siblings, 1 reply; 5+ messages in thread
From: Tao Ma @ 2009-12-21  6:11 UTC (permalink / raw)
  To: ocfs2-devel

I just noticed today that we have no default mask
prefix for fs/ocfs2/cluster/heartbeat.c, but we have
2 places that use "mlog(0,...)". So add the default
prefix so that these "mlog(0, ...)" can work.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
---
 fs/ocfs2/cluster/heartbeat.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index c452d11..edec9bf 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -40,6 +40,7 @@
 #include "nodemanager.h"
 #include "quorum.h"
 
+#define MLOG_MASK_PREFIX ML_HEARTBEAT
 #include "masklog.h"
 
 
-- 
1.5.5

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

* [Ocfs2-devel] [PATCH] ocfs2/trivial: Add default mask log for heartbeat.c
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Sunil Mushran @ 2009-12-21 22:37 UTC (permalink / raw)
  To: ocfs2-devel

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.

Tao Ma wrote:
> I just noticed today that we have no default mask
> prefix for fs/ocfs2/cluster/heartbeat.c, but we have
> 2 places that use "mlog(0,...)". So add the default
> prefix so that these "mlog(0, ...)" can work.
>
> Signed-off-by: Tao Ma <tao.ma@oracle.com>
> ---
>  fs/ocfs2/cluster/heartbeat.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
> index c452d11..edec9bf 100644
> --- a/fs/ocfs2/cluster/heartbeat.c
> +++ b/fs/ocfs2/cluster/heartbeat.c
> @@ -40,6 +40,7 @@
>  #include "nodemanager.h"
>  #include "quorum.h"
>  
> +#define MLOG_MASK_PREFIX ML_HEARTBEAT
>  #include "masklog.h"
>  
>  
>   

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

* [Ocfs2-devel] [PATCH] ocfs2/trivial: Add default mask log for heartbeat.c
  2009-12-21 22:37 ` Sunil Mushran
@ 2009-12-22  1:37   ` Tao Ma
  2009-12-22  1:50     ` Sunil Mushran
  0 siblings, 1 reply; 5+ messages in thread
From: Tao Ma @ 2009-12-22  1:37 UTC (permalink / raw)
  To: ocfs2-devel



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,...)?

Regards,
Tao
> 
> Tao Ma wrote:
>> I just noticed today that we have no default mask
>> prefix for fs/ocfs2/cluster/heartbeat.c, but we have
>> 2 places that use "mlog(0,...)". So add the default
>> prefix so that these "mlog(0, ...)" can work.
>>
>> Signed-off-by: Tao Ma <tao.ma@oracle.com>
>> ---
>>  fs/ocfs2/cluster/heartbeat.c |    1 +
>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
>> index c452d11..edec9bf 100644
>> --- a/fs/ocfs2/cluster/heartbeat.c
>> +++ b/fs/ocfs2/cluster/heartbeat.c
>> @@ -40,6 +40,7 @@
>>  #include "nodemanager.h"
>>  #include "quorum.h"
>>  
>> +#define MLOG_MASK_PREFIX ML_HEARTBEAT
>>  #include "masklog.h"
>>  
>>  
>>   
> 

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

* [Ocfs2-devel] [PATCH] ocfs2/trivial: Add default mask log for heartbeat.c
  2009-12-22  1:37   ` Tao Ma
@ 2009-12-22  1:50     ` Sunil Mushran
  2009-12-22  2:04       ` Tao Ma
  0 siblings, 1 reply; 5+ messages in thread
From: Sunil Mushran @ 2009-12-22  1:50 UTC (permalink / raw)
  To: ocfs2-devel

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.

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.

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

* [Ocfs2-devel] [PATCH] ocfs2/trivial: Add default mask log for heartbeat.c
  2009-12-22  1:50     ` Sunil Mushran
@ 2009-12-22  2:04       ` Tao Ma
  0 siblings, 0 replies; 5+ messages in thread
From: Tao Ma @ 2009-12-22  2:04 UTC (permalink / raw)
  To: ocfs2-devel



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

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

end of thread, other threads:[~2009-12-22  2:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.