Thread (23 messages) 23 messages, 3 authors, 2020-11-03
STALE2089d LANDED

[PATCH net-next 00/15] in_interrupt() cleanup, part 2

From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: 2020-10-27 22:55:25
Also in: linux-arm-kernel, linux-crypto, linux-rdma, linux-wireless, netdev

Folks,

in the discussion about preempt count consistency across kernel configurations:

  https://lore.kernel.org/r/20200914204209.256266093@linutronix.de/ (local)

Linus clearly requested that code in drivers and libraries which changes
behaviour based on execution context should either be split up so that
e.g. task context invocations and BH invocations have different interfaces
or if that's not possible the context information has to be provided by the
caller which knows in which context it is executing.

This includes conditional locking, allocation mode (GFP_*) decisions and
avoidance of code paths which might sleep.

In the long run, usage of 'preemptible, in_*irq etc.' should be banned from
driver code completely.

This is part two addressing remaining drivers except for orinoco-usb.

Sebastian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help