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:48:24 +0000 (09:48 -0700)
commite060b80dfb3f1a52d3c0b7399a2fcdba83b6f876
treec800978a40249dc7d5e4f54841d85af8843849b9
parent3e8ee3310d4c08d46ba11d456dd401b068106b3c
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