datapath: Use RCU callback when detaching netdevices.
authorJesse Gross <jesse@nicira.com>
Wed, 28 Nov 2012 20:15:49 +0000 (12:15 -0800)
committerJesse Gross <jesse@nicira.com>
Wed, 28 Nov 2012 20:15:49 +0000 (12:15 -0800)
commite65361d6b6fa0c3fb383b37cd259a24846ded7d5
tree83124cc043aa6d461836bd1918dc6b26ba5b1cca
parent3f78c3ccb5d024c7e2e7eae58be03f4960b996c8
datapath: Use RCU callback when detaching netdevices.

Currently, each time a device is detached from an OVS datapath
we call synchronize RCU before freeing associated data structures.
However, if a bridge is deleted (which detaches all ports) when
many devices are connected then there can be a long delay.  This
switches to use call_rcu() to group the cost together.

Reported-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/vport-netdev.c
datapath/vport-netdev.h