]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add a semaphore to some ML2 operations
authorSalvatore Orlando <salv.orlando@gmail.com>
Thu, 13 Mar 2014 22:06:12 +0000 (15:06 -0700)
committerKevin Benton <blak111@gmail.com>
Thu, 20 Mar 2014 01:06:22 +0000 (18:06 -0700)
commit688e05d4b000e7cbfdfa1097287a0ff398e02780
tree75cba4ceddc8ba195979d727ddd2fc2c2937568b
parent30342f608e7b66142dfca53d69d1ef49e554969e
Add a semaphore to some ML2 operations

This patch adds a semaphore for serializing the delete port API
calls and update_port_status calls to avoid simultaneous
attempts to acquire SQL update locks on the port table from
the same thread pool.

This semaphore has been introduced to avoid undesired eventlet
yields which trigger 'lock wait timeout' errors in the DB backend;
it should have a negligible impact on the overall performance.

Change-Id: I0ec947086e533945942ae93402943dec69b218ef
Partial-Bug: 1283522
neutron/plugins/ml2/plugin.py