atm: eni: Use tasklet_disable_in_atomic() in the send() callback
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 9 Mar 2021 08:42:14 +0000 (09:42 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 17 Mar 2021 15:34:02 +0000 (16:34 +0100)
commit405698ca359a23b1ef1a502ef2bdc4597dc6da36
treec1ec1fc1eccb624ad19776e69a4b58ecee9043f4
parent3250aa8a293b1859d76577714a3e1fe95732c721
atm: eni: Use tasklet_disable_in_atomic() in the send() callback

The atmdev_ops::send callback which calls tasklet_disable() is invoked with
bottom halfs disabled from net_device_ops::ndo_start_xmit(). All other
invocations of tasklet_disable() in this driver happen in preemptible
context.

Change the send() call to use tasklet_disable_in_atomic() which allows
tasklet_disable() to be made sleepable once the remaining atomic context
usage sites are cleaned up.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210309084242.415583839@linutronix.de
drivers/atm/eni.c