datapath: Convert patch vport to use call_rcu() on destruction.
authorJesse Gross <jesse@nicira.com>
Sat, 4 Dec 2010 17:43:35 +0000 (09:43 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 10 Dec 2010 01:43:35 +0000 (17:43 -0800)
commit5b68fb428764e66dc73b2674ceb3f3e3555b59f2
tree1c108fd28b428a860457067628d4d94b8d3e5f93
parenta2a96c04cb5d7c4df7578aca5ac073d4ef05ca08
datapath: Convert patch vport to use call_rcu() on destruction.

Since patch ports are virtual devices, we can potentially have many
of them in a datapath.  Currently we have a call to synchronize_rcu()
each time we destroy one, which can be expensive if we are deleting a
datapath with many ports.  This converts it to use call_rcu() instead,
which allows us to wait for only a single RCU grace period independent
of the number of ports.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-patch.c