tty: Fix deadlock in tty output
authorAlan Cox <alan@linux.intel.com>
Sat, 19 Jan 2019 21:38:54 +0000 (21:38 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 19 Jan 2019 21:38:54 +0000 (21:38 +0000)
commitd4e2f098fa4160a64e43f9d5efff956481b710a6
tree280983a5b4a6df23048e8c3c93be741749a590db
parent5612a206046357d1aa7ef0c7ac6f782f2a26785d
tty: Fix deadlock in tty output

If you had a dumb tty port (or driver) and your write blocked until pre-emption
then we'd sleep expecting a tty wake event even though the tty doesn't provide
one.

Instead if we got told 'soon' we yield when asked to pre-empt.
Kernel/tty.c