[ovs-git] [openvswitch/ovs] 78d9bb: ofproto-dpif-upcall: Make handler always call poll...
noreply at github.com
Tue Jan 6 18:47:16 UTC 2015
Author: Alex Wang <alexw at nicira.com>
Date: 2015-01-06 (Tue, 06 Jan 2015)
ofproto-dpif-upcall: Make handler always call poll_block.
This commit makes handler threads always call poll_block() at
the end of each handling cycle. If there are upcalls received
in the current cycle, the handler will register to wake up
immediately. Otherwise, it will wait on both the netlink
socket and the exit latch.
Calling poll_block() at every handling cycle makes sure that
coverage counter stats are always timely attributed, and that
the execution of ovsrcu-postponed events is not held by any
busy handler thread.
Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>
More information about the git