Commit 59d395e
r8169: fix deadlock on RTL8125 in jumbo mtu mode
The original change results in a deadlock if jumbo mtu mode is used.
Reason is that the phydev lock is held when rtl_reset_work() is called
here, and rtl_jumbo_config() calls phy_start_aneg() which also tries
to acquire the phydev lock. Fix this by calling rtl_reset_work()
asynchronously.
Fixes: 621735f ("r8169: fix rare issue with broken rx after link-down on RTL8125")
Reported-by: Ian Chen <free122448@hotmail.com>
Tested-by: Ian Chen <free122448@hotmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/caf6a487-ef8c-4570-88f9-f47a659faf33@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 45b3fae commit 59d395e
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| 582 | + | |
582 | 583 | | |
583 | 584 | | |
584 | 585 | | |
| |||
4582 | 4583 | | |
4583 | 4584 | | |
4584 | 4585 | | |
| 4586 | + | |
| 4587 | + | |
4585 | 4588 | | |
4586 | 4589 | | |
4587 | 4590 | | |
| |||
4615 | 4618 | | |
4616 | 4619 | | |
4617 | 4620 | | |
4618 | | - | |
| 4621 | + | |
4619 | 4622 | | |
4620 | 4623 | | |
4621 | 4624 | | |
| |||
0 commit comments