datapath: Fix deadlock on STT device destroy.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 12 Jan 2016 19:45:18 +0000 (11:45 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 12 Jan 2016 19:45:18 +0000 (11:45 -0800)
commitfee43fa277f62d1ed7e08b21ece96f4e15df2569
tree920f704fe226c136a87b658c084a265cae462044
parent32d37ce8518f23309acb2e60dba891672f5de84f
datapath: Fix deadlock on STT device destroy.

STT unregisters nf-hook when there are no other STT devices
left in the namespace. On some kernel versions the nf-unreg API
take RTNL lock, but it is already taken in the tunnel device
destroy code path which results in deadlock. To fix the issue
I moved the unreg call into net-exit.

VMware-BZ: #1582410
Reported-by: Joe Stringer <joe@ovn.org>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Joe Stringer <joe@ovn.org>
datapath/linux/compat/stt.c