]> git.baikalelectronics.ru Git - kernel.git/commit
tty: n_gsm: fix missing timer to handle stalled links
authorDaniel Starke <daniel.starke@siemens.com>
Fri, 1 Jul 2022 06:16:47 +0000 (08:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jul 2022 08:07:26 +0000 (10:07 +0200)
commit3e2dd224b3106540fba1acfd7550578b24cd7ff8
tree2ddebe29b04934b5f16918615814931196b29750
parent99ca134ad43d36e58c6b1c0e1be97b8476a670e4
tty: n_gsm: fix missing timer to handle stalled links

The current implementation does not handle the situation that no data is in
the internal queue and needs to be sent out while the user tty fifo is
full.
Add a timer that moves more data from user tty down to the internal queue
which is then serialized on the ldisc. This timer is triggered if no data
was moved from a user tty to the internal queue within 10 * T1.

Fixes: 99551fa31543 ("tty: n_gsm line discipline")
Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20220701061652.39604-4-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c