linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] in_interrupt() cleanup, part 2 (wireless)
@ 2020-11-01 21:15 Sebastian Andrzej Siewior
  2020-11-01 21:15 ` [PATCH 1/8] orinoco: Remove BUG_ON(in_interrupt/irq()) Sebastian Andrzej Siewior
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Sebastian Andrzej Siewior @ 2020-11-01 21:15 UTC (permalink / raw)
  To: linux-wireless
  Cc: Jouni Malinen, Kalle Valo, Ping-Ke Shih, Ulrich Kunitz,
	Thomas Gleixner

Folks,

in the discussion about preempt count consistency across kernel configurations:

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

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 wireless drivers except for
orinoco-usb.

Sebastian



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-11-07 15:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-01 21:15 [PATCH] in_interrupt() cleanup, part 2 (wireless) Sebastian Andrzej Siewior
2020-11-01 21:15 ` [PATCH 1/8] orinoco: Remove BUG_ON(in_interrupt/irq()) Sebastian Andrzej Siewior
2020-11-07 15:52   ` Kalle Valo
2020-11-01 21:15 ` [PATCH 2/8] airo: Invoke airo_read_wireless_stats() directly Sebastian Andrzej Siewior
2020-11-01 21:15 ` [PATCH 3/8] airo: Always use JOB_STATS and JOB_EVENT Sebastian Andrzej Siewior
2020-11-01 21:15 ` [PATCH 4/8] airo: Replace in_atomic() usage Sebastian Andrzej Siewior
2020-11-01 21:15 ` [PATCH 5/8] hostap: Remove in_atomic() check Sebastian Andrzej Siewior
2020-11-01 21:15 ` [PATCH 6/8] zd1211rw: Remove in_atomic() usage Sebastian Andrzej Siewior
2020-11-01 21:15 ` [PATCH 7/8] rtlwifi: Remove in_interrupt() usage in is_any_client_connect_to_ap() Sebastian Andrzej Siewior
2020-11-01 21:15 ` [PATCH 8/8] rtlwifi: Remove in_interrupt() usage in halbtc_send_bt_mp_operation() Sebastian Andrzej Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).