netpoll: don't require irqs disabled in rt kernels
authorWander Lairson Costa <wander@redhat.com>
Mon, 31 May 2021 15:23:23 +0000 (12:23 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2021 22:15:11 +0000 (15:15 -0700)
commitb0f6c9ac8088a01cd9b6bfba8ede22f1bd0ff72f
tree2fd1350338ec602101e1eff3b872d5b2420335b9
parenta20af95fba7258103ce909acab52ccfb25ae3813
netpoll: don't require irqs disabled in rt kernels

write_msg(netconsole.c:836) calls netpoll_send_udp after a call to
spin_lock_irqsave, which normally disables interrupts; but in PREEMPT_RT
this call just locks an rt_mutex without disabling irqs. In this case,
netpoll_send_udp is called with interrupts enabled.

Signed-off-by: Wander Lairson Costa <wander@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c