From: Arthur Kepner <akepner@sgi.com>
To: Chris Wright <chrisw@osdl.org>
Cc: Bob Gill <gillb4@telusplanet.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [2.6.7-bk] NFS-related kernel panic
Date: Tue, 22 Jun 2004 09:11:04 -0700 [thread overview]
Message-ID: <Pine.SGI.4.56.0406220906190.1334066@neteng.engr.sgi.com> (raw)
In-Reply-To: <20040621203520.H22989@build.pdx.osdl.net>
On Mon, 21 Jun 2004, Chris Wright wrote:
>
> The lockless loopback transmission patch mucks up the preempt count.
> Can you give this patch a try?
>
> thanks,
> -chris
> --
> Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
>
Yes, there's a problem with preempt count. And this patch is
the minimal fix for it.
However, Andrew Morton noted this problem already and posted
a patch to be tested yesterday. I'd like to suggest that we go
with his patch (very slightly modified) which I'll post in a few
minutes to netdev. (I will cc Chris and Bob on this too.)
--
Arthur
> ===== loopback.c 1.15 vs edited =====
> --- 1.15/drivers/net/loopback.c 2004-06-20 17:35:52 -07:00
> +++ edited/loopback.c 2004-06-21 20:23:06 -07:00
> @@ -143,10 +143,11 @@
>
> dev->last_rx = jiffies;
> if (likely(loopback_stats)) {
> - get_cpu_ptr(loopback_stats)->rx_bytes += skb->len;
> - get_cpu_ptr(loopback_stats)->tx_bytes += skb->len;
> - get_cpu_ptr(loopback_stats)->rx_packets++;
> - get_cpu_ptr(loopback_stats)->tx_packets++;
> + struct net_device_stats *stats = get_cpu_ptr(loopback_stats);
> + stats->rx_bytes += skb->len;
> + stats->tx_bytes += skb->len;
> + stats->rx_packets++;
> + stats->tx_packets++;
> put_cpu_ptr(loopback_stats);
> }
>
>
next prev parent reply other threads:[~2004-06-22 16:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-22 2:50 Bob Gill
2004-06-22 3:35 ` Chris Wright
2004-06-22 13:37 ` Stewart Smith
2004-06-22 14:01 ` Grzegorz Kulewski
2004-06-22 16:11 ` Arthur Kepner [this message]
[not found] <fa.l7nhc0k.1k1oepm@ifi.uio.no>
[not found] ` <fa.gh5h9hv.b2sm3v@ifi.uio.no>
2004-06-22 21:14 ` walt
2004-06-22 21:27 ` Chris Wright
2004-06-23 13:58 walt
2004-06-21 18:39 ` Grzegorz Kulewski
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=Pine.SGI.4.56.0406220906190.1334066@neteng.engr.sgi.com \
--to=akepner@sgi.com \
--cc=chrisw@osdl.org \
--cc=gillb4@telusplanet.net \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®