]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: fix operation under forced interrupt threading
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 18 Oct 2020 16:38:59 +0000 (18:38 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 19 Oct 2020 23:55:54 +0000 (16:55 -0700)
commit66f03fdab1fb4d4022a5fa46639661516eb9c0e5
treea4df824217ecca3a05a0a5eb03b9fd41caf8fbe3
parent8599aa65f0f79436ff22f7eaac3344b0091072d3
r8169: fix operation under forced interrupt threading

For several network drivers it was reported that using
__napi_schedule_irqoff() is unsafe with forced threading. One way to
fix this is switching back to __napi_schedule, but then we lose the
benefit of the irqoff version in general. As stated by Eric it doesn't
make sense to make the minimal hard irq handlers in drivers using NAPI
a thread. Therefore ensure that the hard irq handler is never
thread-ified.

Fixes: 671194f09c20 ("r8169: switch to napi_schedule_irqoff")
Link: https://lkml.org/lkml/2020/10/18/19
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/4d3ef84a-c812-5072-918a-22a6f6468310@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c