[Hyper-V] netvsc: fix rtnl deadlock on unregister of vf

Bug #1708995 reported by Joshua R. Poulson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-azure (Ubuntu)
Fix Committed
High
Marcelo Cerri
Nominated for Xenial by Marcelo Cerri

Bug Description

This is a deadlock fix for functionality introduced with https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1708469 which applies to lts-xenial and linux-azure

https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=fb84af8a4397ee664a51c2da1dd64fb3d582ee24

With new transparent VF support, it is possible to get a deadlock
when some of the deferred work is running and the unregister_vf
is trying to cancel the work element. The solution is to use
trylock and reschedule (similar to bonding and team device)

Joshua R. Poulson (jrp)
Changed in linux-azure (Ubuntu):
status: New → Confirmed
Marcelo Cerri (mhcerri)
Changed in linux-azure (Ubuntu):
status: Confirmed → Triaged
assignee: nobody → Marcelo Cerri (mhcerri)
status: Triaged → In Progress
Revision history for this message
Marcelo Cerri (mhcerri) wrote :
Marcelo Cerri (mhcerri)
Changed in linux-azure (Ubuntu):
importance: Undecided → High
Marcelo Cerri (mhcerri)
Changed in linux-azure (Ubuntu):
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.