Revert "igb: Fix a deadlock in igb_sriov_reinit"
Subsystems (2)
PATCH 1/1 Revert "igb: Fix a deadlock in igb_sriov_reinit"
This reverts commit 3eb14ea8d958 ("igb: Fix a deadlock in igb_sriov_reinit")
It is the same as commit f468adc944ef ("igb: missing rtnl_unlock in igb_sriov_reinit()")
There is no rtnl_lock() in igb_resume before, rtnl_unlock will cause a deadlock.
--- drivers/net/ethernet/intel/igb/igb_main.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/intel/igb/igb_main.c +0 -1
@@ -7574,7 +7574,6 @@ static int igb_resume(struct device *dev)if (igb_init_interrupt_scheme (adapter, true)) {dev_err (&pdev->dev,"Unable to allocate memory for queues\n" ); -rtnl_unlock ();return -ENOMEM ; }
--
1.8.5.2
Brown
PATCH 1/1 Revert "igb: Fix a deadlock in igb_sriov_reinit"
Quoted 16 lines
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On Behalf Of
c00176621
Sent: Tuesday, April 5, 2016 8:10 PM
To: intel-wired-lan at lists.osuosl.org
Cc: Liuyongan <[email protected]>; baijiaju1990 at 163.com; wangyunjian <[email protected]>
Subject: [Intel-wired-lan] [PATCH] Revert "igb: Fix a deadlock inigb_sriov_reinit"This reverts commit
3eb14ea8d958("igb: Fix a deadlock inigb_sriov_reinit")
It is the same as commitf468adc944ef("igb: missingrtnl_unlockinigb_sriov_reinit()")
There is nortnl_lock()inigb_resumebefore,rtnl_unlockwill cause a deadlock.
Quoted 4 lines
Signed-off-by Arika Chen <[email protected]>--- drivers/net/ethernet/intel/igb/igb_main.c | 1 - 1 file changed, 1 deletion(-)
Yeah, it looks like the a rtnl_unlock got thrown into another function as a side effect of adding it to igb_sriov_reinit