[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110525.175828.952417507003208045.davem@davemloft.net>
Date: Wed, 25 May 2011 17:58:28 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, kaber@...sh.net, shemminger@...tta.com
Subject: Re: [PATCH] net: hold rtnl again in dump callbacks
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 25 May 2011 19:34:04 +0200
> Commit e67f88dd12f6 (dont hold rtnl mutex during netlink dump callbacks)
> missed fact that rtnl_fill_ifinfo() must be called with rtnl held.
>
> Because of possible deadlocks between two mutexes (cb_mutex and rtnl),
> its not easy to solve this problem, so revert this part of the patch.
>
> It also forgot one rcu_read_unlock() in FIB dump_rules()
>
> Add one ASSERT_RTNL() in rtnl_fill_ifinfo() to remind us the rule.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
> CC: Patrick McHardy <kaber@...sh.net>
> CC: Stephen Hemminger <shemminger@...tta.com>
> ---
> I tried to solve this problem differently but failed. We need more
> preliminary steps.
Applied.
--
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