* [PATCH] neigh: print nud_state in neigh timer handler.
@ 2011-10-31 21:10 Daniel Baluta
2011-11-01 21:44 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Baluta @ 2011-10-31 21:10 UTC (permalink / raw)
To: davem
Cc: eric.dumazet, gregory.v.rose, jeffrey.t.kirsher, netdev,
Daniel Baluta, Daniel Baluta
From: Daniel Baluta <daniel.baluta@gmail.com>
For debugging purposes it is useful to know the exact state of a
non NUD_IN_TIMER neighbour entry whose timer handler just expired.
Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
---
net/core/neighbour.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 909ecb3..6a8a311 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -874,7 +874,7 @@ static void neigh_timer_handler(unsigned long arg)
if (!(state & NUD_IN_TIMER)) {
#ifndef CONFIG_SMP
- printk(KERN_WARNING "neigh: timer & !nud_in_timer\n");
+ printk(KERN_WARNING "neigh: timer & !nud_in_timer, state:0x%x\n", state);
#endif
goto out;
}
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] neigh: print nud_state in neigh timer handler.
2011-10-31 21:10 [PATCH] neigh: print nud_state in neigh timer handler Daniel Baluta
@ 2011-11-01 21:44 ` David Miller
2011-11-01 22:05 ` Daniel Baluta
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2011-11-01 21:44 UTC (permalink / raw)
To: dbaluta
Cc: eric.dumazet, gregory.v.rose, jeffrey.t.kirsher, netdev,
daniel.baluta
From: Daniel Baluta <dbaluta@ixiacom.com>
Date: Mon, 31 Oct 2011 23:10:48 +0200
> From: Daniel Baluta <daniel.baluta@gmail.com>
>
> For debugging purposes it is useful to know the exact state of a
> non NUD_IN_TIMER neighbour entry whose timer handler just expired.
>
> Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
This debugging log message is dubious.
Also, it is protected by !SMP and I can almost guarentee you that whatever
condition makes it happen leigitmately on SMP also can be triggered with
preemption enabled on !SMP.
So I'm going to simply remove this debug message entirely instead.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] neigh: print nud_state in neigh timer handler.
2011-11-01 21:44 ` David Miller
@ 2011-11-01 22:05 ` Daniel Baluta
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Baluta @ 2011-11-01 22:05 UTC (permalink / raw)
To: David Miller; +Cc: eric.dumazet, gregory.v.rose, jeffrey.t.kirsher, netdev
On Tue, Nov 1, 2011 at 11:44 PM, David Miller <davem@davemloft.net> wrote:
> From: Daniel Baluta <dbaluta@ixiacom.com>
> Date: Mon, 31 Oct 2011 23:10:48 +0200
>
>> From: Daniel Baluta <daniel.baluta@gmail.com>
>>
>> For debugging purposes it is useful to know the exact state of a
>> non NUD_IN_TIMER neighbour entry whose timer handler just expired.
>>
>> Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
>
> This debugging log message is dubious.
>
> Also, it is protected by !SMP and I can almost guarentee you that whatever
> condition makes it happen leigitmately on SMP also can be triggered with
> preemption enabled on !SMP.
>
> So I'm going to simply remove this debug message entirely instead.
Agree. If you can figure out when this condition is true, it is nice
to have a comment.
Daniel.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-01 22:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-31 21:10 [PATCH] neigh: print nud_state in neigh timer handler Daniel Baluta
2011-11-01 21:44 ` David Miller
2011-11-01 22:05 ` Daniel Baluta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox