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 21:58:10 +0000 (13:58 -0800)
commitd4a05c76e317a01fa1341605150ffec77b444b0b
treef47be5944a9bde70b2075bae40ef8abd416582ee
parentdf73a47038531bddae9ec341da0ac5a7f86e409f
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