Skip to content

Commit

Permalink
[IPV4]: Fix garbage collection of multipath route entries
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Suresh Bhogavilli authored and David S. Miller committed Feb 24, 2006
1 parent 42cf93c commit 8525987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8525987

Please sign in to comment.