From: Jeff Garzik <jeff@garzik.org>
To: Arjan van de Ven <arjan@linux.intel.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
torvalds@linux-foundation.org, davem@davemloft.net
Subject: Re: warn: Turn the netdev timeout WARN_ON() into a WARN()
Date: Wed, 17 Sep 2008 17:39:07 -0400 [thread overview]
Message-ID: <48D178FB.80902@garzik.org> (raw)
In-Reply-To: <20080917064128.2b2f8616@linux.intel.com>
Arjan van de Ven wrote:
> From: Arjan van de Ven <arjan@linux.intel.com>
> Subject: [PATCH] net: WARN_ONCE -> WARN as requested by Jeff Garzik
>
> Jeff points out that you want to see each and every
> timeout message
>
> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
> ---
> net/sched/sch_generic.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
> index ec0a083..8772642 100644
> --- a/net/sched/sch_generic.c
> +++ b/net/sched/sch_generic.c
> @@ -215,7 +215,7 @@ static void dev_watchdog(unsigned long arg)
> time_after(jiffies, (dev->trans_start +
> dev->watchdog_timeo))) {
> char drivername[64];
> - WARN_ONCE(1, KERN_INFO "NETDEV WATCHDOG: %s (%s): transmit timed out\n",
> + WARN(1, KERN_INFO "NETDEV WATCHDOG: %s (%s): transmit timed out\n",
> dev->name, netdev_drivername(dev, drivername, 64));
> dev->tx_timeout(dev);
ACK, this fixes my objection, thanks
It still seems a bit burdensome to print out a huge, redundant backtrace
and kernel info each time, though.
The most important information is (a) a timeout occurred and (b)
hopefully some hardware register dump or similar driver-specific output.
> If all the networking guys agree that the report
> has no value for developers because they're all unfixable hardware bugs,
You misunderstand; reporting and tracking these issues have value, but
the information you are dumping (specifically the backtrace) does not.
You say your goal here mainly to standardize reporting to permit
automated collection -- I support that goal too. But is there a better
way -- say perhaps just printing the header you need, and _not_ the
useless backtrace?
I think it would benefit Linux if our bugs announce themselves in a
standard way, but the backtrace is not a key part of that, and IMO
should be optional.
Jeff
next prev parent reply other threads:[~2008-09-17 21:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200809170259.m8H2xClI020907@hera.kernel.org>
2008-09-17 3:27 ` warn: Turn the netdev timeout WARN_ON() into a WARN() Jeff Garzik
2008-09-17 13:41 ` Arjan van de Ven
2008-09-17 21:39 ` Jeff Garzik [this message]
2008-09-17 21:45 ` Arjan van de Ven
2008-09-17 21:53 ` Jeff Garzik
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=48D178FB.80902@garzik.org \
--to=jeff@garzik.org \
--cc=arjan@linux.intel.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox