mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 02:23:16 +00:00
[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: Suresh Bhogavilli <sbhogavilli@verisign.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
42cf93cd46
commit
8525987849
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user