summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2023-11-19 19:23:41 +0300
committerPaolo Abeni <pabeni@redhat.com>2023-11-21 15:15:02 +0300
commitd30fb712e52964f2cf9a9c14cf67078394044837 (patch)
tree378fe07bc1fd2484fdbf85f173f555fa2c10cd8a /tools/perf/scripts/python/export-to-sqlite.py
parentc0e2926266af3b5acf28df0a8fc6e4d90effe0bb (diff)
downloadlinux-d30fb712e52964f2cf9a9c14cf67078394044837.tar.xz
hv_netvsc: fix race of netvsc and VF register_netdevice
The rtnl lock also needs to be held before rndis_filter_device_add() which advertises nvsp_2_vsc_capability / sriov bit, and triggers VF NIC offering and registering. If VF NIC finished register_netdev() earlier it may cause name based config failure. To fix this issue, move the call to rtnl_lock() before rndis_filter_device_add(), so VF will be registered later than netvsc / synthetic NIC, and gets a name numbered (ethX) after netvsc. Cc: stable@vger.kernel.org Fixes: e04e7a7bbd4b ("hv_netvsc: Fix a deadlock by getting rtnl lock earlier in netvsc_probe()") Reported-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions