RE: BUG: sleeping function called from invalid context in __might_resched

From: D. Starke
Date: Thu Apr 20 2023 - 04:23:51 EST


> Hmm, tty_operations::write() is documented as "not allowed to sleep".
> But vt's write was always sleeping :D. I wonder:
> 1) can gsmld be switched to a mutex?
> 2) what do other ldiscs do? FWIW n_tty does mutex, so allows ::write()
> to sleep.

There was already a failed attempt to solve this in the past. But this is
not an easy issue and involves the complete outgoing data flow of the
driver.

Link: https://lore.kernel.org/all/20221205190806.179857803@xxxxxxxxxxxxxxxxxxx/

Best regards,
Daniel Starke