]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Avoid nested RTNL locking in ice_dis_vsi
authorDave Ertman <david.m.ertman@intel.com>
Fri, 26 Oct 2018 17:41:04 +0000 (10:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 13 Nov 2018 17:09:26 +0000 (09:09 -0800)
commit2f73afa1eccc49e5922595896e3354b57d9e8256
treeb364e7dd7c2ed13919fbf24fbc40e34512c34a86
parent193bf1a63d309a90b391febb03a462ac964d39dc
ice: Avoid nested RTNL locking in ice_dis_vsi

ice_dis_vsi() performs an rtnl_lock() if it detects a netdev that is
running on the VSI. In cases where the RTNL lock has already been
acquired, a deadlock results. Add a boolean to pass to ice_dis_vsi to
tell it if the RTNL lock is already held.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c