[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080822.032332.127607587.davem@davemloft.net>
Date: Fri, 22 Aug 2008 03:23:32 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jarkao2@...il.com
Cc: herbert@...dor.apana.org.au, netdev@...r.kernel.org,
denys@...p.net.lb
Subject: Re: [PATCH take 2] pkt_sched: Fix qdisc list locking
From: Jarek Poplawski <jarkao2@...il.com>
Date: Fri, 22 Aug 2008 09:27:30 +0000
> pkt_sched: Fix qdisc list locking
>
> Since some qdiscs call qdisc_tree_decrease_qlen() (so qdisc_lookup())
> without rtnl_lock(), adding and deleting from a qdisc list needs
> additional locking. This patch adds global spinlock qdisc_list_lock
> and wrapper functions for modifying the list. It is considered as a
> temporary solution until hfsc_dequeue(), netem_dequeue() and
> tbf_dequeue() (or qdisc_tree_decrease_qlen()) are redone.
>
> With feedback from Herbert Xu and David S. Miller.
>
> Signed-off-by: Jarek Poplawski <jarkao2@...il.com>
Looks good Jarek, thanks!
Since these requeue failure cases are slow paths, this shouldn't have
any performance impact either.
I'll apply this, 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