]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
openvswitch: Convert dp rcu read operation to locked operations
authorPravin B Shelar <pshelar@nicira.com>
Tue, 11 Nov 2014 23:55:16 +0000 (15:55 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 14 Nov 2014 23:13:26 +0000 (15:13 -0800)
commit8ec609d8b561468691b60347ff594bd443ea58c0
treef84c0baf1777f642408afa9df69bb69a34cb8d5d
parent19e7a3df7261c9b7ebced8163c383712d5b6ac6b
openvswitch: Convert dp rcu read operation to locked operations

dp read operations depends on ovs_dp_cmd_fill_info(). This API
needs to looup vport to find dp name, but vport lookup can
fail. Therefore to keep vport reference alive we need to
take ovs lock.

Introduced by commit 6093ae9abac1 ("openvswitch: Minimize
dp and vport critical sections").

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
net/openvswitch/datapath.c