OSDN Git Service

vxlan: release lock after each bucket in vxlan_cleanup
authorSorin Dumitru <sorin@returnze.ro>
Tue, 26 May 2015 07:42:04 +0000 (10:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 17:33:21 +0000 (13:33 -0400)
commit14e1d0fa97f821b42e8683500cf4ec817bb5d940
tree213d748de6b02020fa76c0cf9309755a798f4fd1
parent07f4c90062f8fc7c8c26f8f95324cbe8fa3145a5
vxlan: release lock after each bucket in vxlan_cleanup

We're seeing some softlockups from this function when there
are a lot fdb entries on a vxlan device. Taking the lock for
each bucket instead of the whole table is enough to fix that.

Signed-off-by: Sorin Dumitru <sdumitru@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c