[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080812.231633.193696650.davem@davemloft.net>
Date: Tue, 12 Aug 2008 23:16:33 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jarkao2@...il.com
Cc: herbert@...dor.apana.org.au, netdev@...r.kernel.org
Subject: Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
From: Jarek Poplawski <jarkao2@...il.com>
Date: Wed, 13 Aug 2008 06:13:17 +0000
> On Tue, Aug 12, 2008 at 10:11:03PM -0700, David Miller wrote:
> > So, just like one of Jarek's patches, we should simply change
> > dev_queue->qdisc into dev_queue->qdisc_sleeping and that should
> > take care of the bulk of the issues.
> >
> > Shouldn't it?
>
> If we don't change anything in __netif_schedule() I doubt it's enough.
> And if this old way of waiting for "outstanding qdisc-less" calls was
> really needed we should probably wait for both qdisc and qdisc_sleeping
> then.
I think if we check both RUNNING and SCHED bits, we'll be OK.
> > Hmmm... maybe we have to sample __QDISC_STATE_SCHED too.
>
> We could probably even think of using this flag napi_disable() way.
Here (in dev_deactivate), ->qdisc is going to now be &noop_qdisc or
similar. Asynchronous contexts can run into that thing as much as
they want :-)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists