openvswitch: Use RCU callback when detaching netdevices.
authorJesse Gross <jesse@nicira.com>
Wed, 28 Nov 2012 22:01:52 +0000 (14:01 -0800)
committerJesse Gross <jesse@nicira.com>
Wed, 28 Nov 2012 22:04:34 +0000 (14:04 -0800)
commit92eb1d477145b2e7780b5002e856f70b8c3d74da
treedd9856ff7feb1dd9b10485c31c26fe4fa4d344c4
parent39c7caebc94e851f58b84b54659156dd30522e8e
openvswitch: 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>
net/openvswitch/vport-netdev.c
net/openvswitch/vport-netdev.h