Commit 85259878 authored by Suresh Bhogavilli's avatar Suresh Bhogavilli Committed by 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: default avatarSuresh Bhogavilli <sbhogavilli@verisign.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment