Skip to contentSkip to conversation

fixup! ice: fix concurrent reset and removal of VFs

PATCH New Jacob Keller 1 participant 1 message Feb 18, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup! ice: fix concurrent reset and removal of VFs

One call to ice_vc_reset_vf failed to grab the VF cfg_lock. Add the missing mutex_lock/unlock to ice_vf_lan_overflow_event.

---
 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c +2 -0
index 353c2a3755d0..1be3cd4b2bef 100644
@@ -2150,7 +2150,9 @@ ice_vf_lan_overflow_event(struct ice_pf *pf, struct ice_rq_event_info *event)
 	if (!vf)
 		return;
 
+	mutex_lock(&vf->cfg_lock);
 	ice_vc_reset_vf(vf);
+	mutex_unlock(&vf->cfg_lock);
 }
 
 /**

base-commit: 967260db57d52ff5e97dc07407aeeb014653b969

Signature · 4 lines
Noticed this gap while reviewing other refactor work I am planning on. Tony,
can you squash this into the relevant commit? Thanks.

2.35.1.129.gb80121027d12