]> asedeno.scripts.mit.edu Git - linux.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)
commitd09e2693b689cc82cd9bae0c4f19f5122708f83e
treeb364e7dd7c2ed13919fbf24fbc40e34512c34a86
parent995c90f2de819b020bdb0758ea4d486b0851e11a
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