# Re: \[PATCH\] tty: cleanup duplicate functions in tty\_buffer

- From: Ivo Sieben \<hidden\>
- Date: 2012-09-25 11:28:36 
- List: linux-serial
- Page: https://ratatoskr.run/linux-serial/2012/09/16402045
- Thread: https://ratatoskr.run/linux-serial/2012/09/16402023/t.md

```text
Hi

2012/9/24 Alan Cox [ref]:
>
> flush_to_ldisc calls into the tty core code which sleeps. The rule is
> that you may not call flush_to_ldisc except from a workqueue context.
>
> If you break that rule then various bad things will occur (eg rx ->
> flush_to_ldisc -> n_tty -> flow control -> tx -> deadlock) in a lot of
> drivers.
>
>
> Several of them are ones that shouldn't.
>

OK, I now understand what you mean with "pile that has needs to move
the other way"
I'll abandon this patch.

Thank you all for reviewing

Regards,
Ivo Sieben
```
