ovs-vswitchd: Fix high cpu utilization when acquire idl lock fails.
authorAlex Wang <alexw@nicira.com>
Thu, 9 Oct 2014 08:23:37 +0000 (08:23 +0000)
committerAlex Wang <alexw@nicira.com>
Thu, 9 Oct 2014 16:27:53 +0000 (09:27 -0700)
commit5aca3322a1597575892d52188612f3b89860020b
tree28e8455d60f85687d963d01d163947630797de41
parentba119c1371f2579dc412855a46b533e442210f4d
ovs-vswitchd: Fix high cpu utilization when acquire idl lock fails.

When ovs-vswitchd fails to acquire the ovsdb idl lock (either due to
contention or due to invalid database path), ovs-vswitchd will spin
on the global connectivity sequence number and consume 100% cpu.
This is in that the local copy is different to the global sequence
number and never updated when ovsdb idl is not locked.

To fix this issue, this commit makes ovs-vswitchd not checking the
global connectivity sequence number in that situation.

Reported-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
tests/ovs-vswitchd.at
vswitchd/bridge.c