linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch V2 00/13] USB: Cleanup in_interupt/in_irq/in_atomic() usage
@ 2020-10-19 10:06 Thomas Gleixner
  2020-10-19 10:06 ` [patch V2 01/13] USB: sisusbvga: Make console support depend on BROKEN Thomas Gleixner
                   ` (12 more replies)
  0 siblings, 13 replies; 27+ messages in thread
From: Thomas Gleixner @ 2020-10-19 10:06 UTC (permalink / raw)
  To: LKML
  Cc: Peter Zijlstra, Thomas Winischhofer, Greg Kroah-Hartman,
	linux-usb, Ahmed S. Darwish, Sebastian Andrzej Siewior,
	Johan Hovold, Mathias Nyman, Valentina Manea, Shuah Khan,
	Alan Stern, linux-omap, Kukjin Kim, Krzysztof Kozlowski,
	linux-arm-kernel, linux-samsung-soc, Felipe Balbi, Duncan Sands

Folks,

in the discussion about preempt count consistency accross 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.

The usage of such constructs in USB is rather limited. Most of it is in
debug code and (misleading) comments. But of course there are also a few
few bugs including one unfixable.

That's an update to V1 of this series which can be found here:

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

Changes vs. V1:

 - Fix the keyspan_pda query buffer properly

 - Seperate the static change from the comments changes

 - Address review feedback vs. comments

 - Fix the typo in isp1362

 - Collected acks/reviewed-by tags

Thanks,

	tglx


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

end of thread, other threads:[~2020-10-28 22:18 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-19 10:06 [patch V2 00/13] USB: Cleanup in_interupt/in_irq/in_atomic() usage Thomas Gleixner
2020-10-19 10:06 ` [patch V2 01/13] USB: sisusbvga: Make console support depend on BROKEN Thomas Gleixner
2020-10-19 10:06 ` [patch V2 02/13] USB: serial: keyspan_pda: Replace in_interrupt() usage Thomas Gleixner
2020-10-25 16:56   ` Johan Hovold
2020-10-26 12:47     ` Sebastian Andrzej Siewior
2020-10-27  8:16       ` Johan Hovold
2020-10-19 10:06 ` [patch V2 03/13] USB: serial: keyspan_pda: Consolidate room query Thomas Gleixner
2020-10-25 17:05   ` Johan Hovold
2020-10-19 10:06 ` [patch V2 04/13] USB: serial: digi_acceleport: Remove in_interrupt() usage Thomas Gleixner
2020-10-25 17:16   ` Johan Hovold
2020-10-26 14:03     ` [PATCH v3 04/13 ] " Sebastian Andrzej Siewior
2020-10-27  8:26       ` Johan Hovold
2020-10-19 10:06 ` [patch V2 05/13] usb: xhci: Remove in_interrupt() checks Thomas Gleixner
2020-10-19 10:06 ` [patch V2 06/13] usb: host: isp1362: Replace in_interrupt() usage Thomas Gleixner
2020-10-28 11:27   ` Greg Kroah-Hartman
2020-10-19 10:06 ` [patch V2 07/13] usbip: Remove in_interrupt() check Thomas Gleixner
2020-10-19 10:06 ` [patch V2 08/13] usb: hosts: Remove in_interrupt() from comments Thomas Gleixner
2020-10-19 16:28   ` Alan Stern
2020-10-19 10:06 ` [patch V2 09/13] USB: host: ehci-pmcmsp: Cleanup usb_hcd_msp_remove() Thomas Gleixner
2020-10-19 16:28   ` Alan Stern
2020-10-19 10:06 ` [patch V2 10/13] usb: gadget: pxa27x_udc: Replace in_interrupt() usage in comments Thomas Gleixner
2020-10-19 10:06 ` [patch V2 11/13] usb: gadget: udc: Remove in_interrupt()/in_irq() from comments Thomas Gleixner
2020-10-19 16:28   ` Alan Stern
2020-10-19 10:06 ` [patch V2 12/13] usb: core: Replace in_interrupt() in comments Thomas Gleixner
2020-10-19 16:28   ` Alan Stern
2020-10-19 10:06 ` [patch V2 13/13] usb: atm: Replace in_interrupt() usage in comment Thomas Gleixner
2020-10-19 10:28   ` Duncan Sands

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).