[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20081125.135622.231076050.davem@davemloft.net>
Date: Tue, 25 Nov 2008 13:56:22 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: kaber@...sh.net
Cc: jarkao2@...il.com, herbert@...dor.apana.org.au,
netdev@...r.kernel.org
Subject: Re: [PATCH] pkt_sched: sch_api: Remove qdisc_list_lock
From: Patrick McHardy <kaber@...sh.net>
Date: Tue, 25 Nov 2008 12:46:25 +0100
> Patrick McHardy wrote:
> > Jarek Poplawski wrote:
> >> After implementing qdisc->ops->peek() there is no more calling
> >> qdisc_tree_decrease_qlen() without rtnl_lock(), so qdisc_list_lock
> >> added by commit: f6e0b239a2657ea8cb67f0d83d0bfdbfd19a481b "pkt_sched:
> >> Fix qdisc list locking" can be removed.
> > I might be misunderstanding something, but qdisc_tree_decrease_qlen()
> > doesn't need rtnl_lock() but the sch_tree_lock() since it changes
> > q.qlen.
>
> OK I see now, rtnl_lock() was taken to protect the parent qdisc lookup.
> In that case it seems fine, all callers are holding both sch_tree_lock()
> and rtnl_lock().
:-)
I've applied Jarek's patch.
Thanks!
--
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