From: Jarek Poplawski <jarkao2@gmail.com>
To: Denys Fedoryshchenko <denys@visp.net.lb>
Cc: netdev@vger.kernel.org
Subject: Re: panic 2.6.27-rc3-git2, qdisc_dequeue_head
Date: Sat, 16 Aug 2008 21:47:32 +0200 [thread overview]
Message-ID: <20080816193956.GB24083@ami.dom.local> (raw)
In-Reply-To: <200808162222.56318.denys@visp.net.lb>
On Sat, Aug 16, 2008 at 10:22:56PM +0300, Denys Fedoryshchenko wrote:
> > These patches shouldn't change so much. I meant: was this last patch
> > (with previous one ie. take #3) tested the same as earlier take #3
> > alone? (There were warnings only, no oopses.)
> Yes, sure with take #3 also.
>
> Warnings disappeared, but kernel paniced, and it is really looks like another
> bug. I will try also to enable more debug options at night (after 2-3 hours,
> when traffic is low), including intensive memory debugging, maybe i can catch
> some memory poisoning.
I only wanted to be sure if the reason(s) of this first oops was found
before looking for the next problem. They could be connected yet.
Anyway, I'm currently most interested in this patch below, so I could
know the better base for next fixes.
Jarek P.
>
> >
> > BTW, here is a patch with another way of fixing this. I would be glad
> > if you could try this too. The previous patch should be reverted, so
> > we need only: "take #3", this one and these two you mentioned above.
> >
> > Jarek P.
> >
> > ---
> >
> > include/linux/netdevice.h | 1 +
> > include/net/sch_generic.h | 5 ++++-
> > net/core/dev.c | 1 +
> > 3 files changed, 6 insertions(+), 1 deletions(-)
> >
> > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
> > index 488c56e..7041c2c 100644
> > --- a/include/linux/netdevice.h
> > +++ b/include/linux/netdevice.h
> > @@ -445,6 +445,7 @@ struct netdev_queue {
> > struct net_device *dev;
> > struct Qdisc *qdisc;
> > unsigned long state;
> > + spinlock_t qdisc_lock;
> > spinlock_t _xmit_lock;
> > int xmit_lock_owner;
> > struct Qdisc *qdisc_sleeping;
> > diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
> > index a7abfda..f84e96c 100644
> > --- a/include/net/sch_generic.h
> > +++ b/include/net/sch_generic.h
> > @@ -185,7 +185,10 @@ static inline struct qdisc_skb_cb *qdisc_skb_cb(struct
> > sk_buff *skb)
> >
> > static inline spinlock_t *qdisc_lock(struct Qdisc *qdisc)
> > {
> > - return &qdisc->q.lock;
> > + if (unlikely(qdisc->flags & TCQ_F_BUILTIN))
> > + return &qdisc->q.lock;
> > +
> > + return &qdisc->dev_queue->qdisc_lock;
> > }
> >
> > static inline struct Qdisc *qdisc_root(struct Qdisc *qdisc)
> > diff --git a/net/core/dev.c b/net/core/dev.c
> > index 600bb23..9ec20e0 100644
> > --- a/net/core/dev.c
> > +++ b/net/core/dev.c
> > @@ -3859,6 +3859,7 @@ static void __netdev_init_queue_locks_one(struct
> > net_device *dev, void *_unused)
> > {
> > spin_lock_init(&dev_queue->_xmit_lock);
> > + spin_lock_init(&dev_queue->qdisc_lock);
> > netdev_set_xmit_lockdep_class(&dev_queue->_xmit_lock, dev->type);
> > dev_queue->xmit_lock_owner = -1;
> > }
> > --
> > To unsubscribe from this list: send the line "unsubscribe netdev" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
next prev parent reply other threads:[~2008-08-16 19:44 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 19:09 panic 2.6.27-rc3-git2, qdisc_dequeue_head Denys Fedoryshchenko
2008-08-15 20:16 ` Jarek Poplawski
2008-08-15 20:36 ` Denys Fedoryshchenko
2008-08-15 20:54 ` Denys Fedoryshchenko
2008-08-16 8:55 ` Jarek Poplawski
2008-08-16 9:13 ` Jarek Poplawski
2008-08-16 10:03 ` Denys Fedoryshchenko
2008-08-16 10:05 ` Denys Fedoryshchenko
2008-08-16 12:27 ` Jarek Poplawski
2008-08-16 12:24 ` Denys Fedoryshchenko
2008-08-16 12:34 ` Jarek Poplawski
2008-08-16 13:13 ` Denys Fedoryshchenko
2008-08-16 14:27 ` Jarek Poplawski
2008-08-16 15:28 ` Denys Fedoryshchenko
2008-08-16 15:59 ` Jarek Poplawski
2008-08-16 18:15 ` Denys Fedoryshchenko
2008-08-16 18:52 ` Jarek Poplawski
2008-08-16 19:22 ` Denys Fedoryshchenko
2008-08-16 19:47 ` Jarek Poplawski [this message]
2008-08-17 9:02 ` Denys Fedoryshchenko
2008-08-17 9:34 ` Jarek Poplawski
2008-08-17 9:35 ` Denys Fedoryshchenko
2008-08-17 9:52 ` Jarek Poplawski
2008-08-17 10:01 ` Denys Fedoryshchenko
2008-08-17 10:31 ` Jarek Poplawski
2008-08-17 10:55 ` Jarek Poplawski
2008-08-17 12:06 ` Denys Fedoryshchenko
2008-08-17 12:18 ` Denys Fedoryshchenko
2008-08-17 12:38 ` Jarek Poplawski
2008-08-17 12:50 ` Denys Fedoryshchenko
2008-08-17 13:03 ` Denys Fedoryshchenko
2008-08-17 13:36 ` Jarek Poplawski
2008-08-17 19:36 ` Denys Fedoryshchenko
2008-08-17 21:47 ` Jarek Poplawski
2008-08-17 22:02 ` David Miller
2008-08-17 22:21 ` Denys Fedoryshchenko
2008-08-17 22:32 ` Jarek Poplawski
2008-08-17 13:16 ` Jarek Poplawski
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=20080816193956.GB24083@ami.dom.local \
--to=jarkao2@gmail.com \
--cc=denys@visp.net.lb \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).