提交 85259878 编写于 作者: S Suresh Bhogavilli 提交者: David S. Miller

[IPV4]: Fix garbage collection of multipath route entries

When garbage collecting route cache entries of multipath routes
in rt_garbage_collect(), entries were deleted from the hash bucket
'i' while holding a spin lock on bucket 'k' resulting in a system
hang.  Delete entries, if any, from bucket 'k' instead.
Signed-off-by: NSuresh Bhogavilli <sbhogavilli@verisign.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 42cf93cd
......@@ -835,7 +835,7 @@ static int rt_garbage_collect(void)
int r;
rthp = rt_remove_balanced_route(
&rt_hash_table[i].chain,
&rt_hash_table[k].chain,
rth,
&r);
goal -= r;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册