diff options
author | Anton Ivanov <anton.ivanov@cambridgegreys.com> | 2018-09-25 08:47:13 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-28 18:25:53 +0100 |
commit | 485a34ada909b5b8d7e2d7ffffd83440e12ca861 (patch) | |
tree | 1167511a729806005591e493d6e0d72b9973f92c /arch | |
parent | 29f9d8d958ee08a42f8c150b7422f7c665e37ea0 (diff) | |
download | linux-stable-485a34ada909b5b8d7e2d7ffffd83440e12ca861.tar.gz linux-stable-485a34ada909b5b8d7e2d7ffffd83440e12ca861.tar.bz2 linux-stable-485a34ada909b5b8d7e2d7ffffd83440e12ca861.zip |
um: Make line/tty semantics use true write IRQ
[ Upstream commit 917e2fd2c53eb3c4162f5397555cbd394390d4bc ]
This fixes a long standing bug where large amounts of output
could freeze the tty (most commonly seen on stdio console).
While the bug has always been there it became more pronounced
after moving to the new interrupt controller.
The line semantics are now changed to have true IRQ write
semantics which should further improve the tty/line subsystem
stability and performance
Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/drivers/line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index 62087028a9ce..d2ad45c10113 100644 --- a/arch/um/drivers/line.c +++ b/arch/um/drivers/line.c @@ -260,7 +260,7 @@ static irqreturn_t line_write_interrupt(int irq, void *data) if (err == 0) { spin_unlock(&line->lock); return IRQ_NONE; - } else if (err < 0) { + } else if ((err < 0) && (err != -EAGAIN)) { line->head = line->buffer; line->tail = line->buffer; } |