]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: use RTNL to protect critical sections
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 20 Jun 2020 20:38:24 +0000 (22:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 23:26:02 +0000 (16:26 -0700)
commita7559090811da4aad41837a66483b04e3116b461
tree4e2c42fc779979a9362b8ab5fb9e8a5322df48c3
parent1c61693598dd1fd01b1a6df228b1664ded00f5d0
r8169: use RTNL to protect critical sections

Most relevant ops (open, close, ethtool ops) are protected with RTNL
lock by net core. Make sure that such ops can't be interrupted by
e.g. (runtime-)suspending by taking the RTNL lock in suspend ops
and the PCI error handler.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c