Yield control to other greenthreads while processing trusted ports
process_trusted_ports() appeared to be greenthread unfriendly, so
if there are many trusted ports on a node, openvswitch agent may
"hang" for a significant time.
This patch adds explicit yield.
Change-Id: I7c00812f877e2fc966bbac3060e1187ce1b809ca
Closes-Bug: #1836023
(cherry picked from commit da539da3780188f01e18ef106dde9ca180324c2a)
Reviewed: https:/ /review. opendev. org/670499 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=eabd114a9b9 26a95a124acec15 a98a3b1d96a6c9
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit eabd114a9b926a9 5a124acec15a98a 3b1d96a6c9
Author: Oleg Bondarev <email address hidden>
Date: Wed Jul 10 12:39:13 2019 +0400
Yield control to other greenthreads while processing trusted ports
process_ trusted_ ports() appeared to be greenthread unfriendly, so
if there are many trusted ports on a node, openvswitch agent may
"hang" for a significant time.
This patch adds explicit yield.
Change-Id: I7c00812f877e2f c966bbac3060e11 87ce1b809ca 01e18ef106dde9c a180324c2a)
Closes-Bug: #1836023
(cherry picked from commit da539da3780188f