summaryrefslogtreecommitdiffstats
path: root/fs/sysv
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2015-01-16 21:05:38 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-02 19:11:26 +0100
commit06c49f9fa31f026e00a15cc6487b4d8d99b0e333 (patch)
tree1d8031d62ef5ab2c86a68f99c4583452ce10866e /fs/sysv
parentn_tty: Fix unordered accesses to lockless read buffer (diff)
downloadlinux-06c49f9fa31f026e00a15cc6487b4d8d99b0e333.tar.xz
linux-06c49f9fa31f026e00a15cc6487b4d8d99b0e333.zip
n_tty: Fix PARMRK over-throttling
If PARMRK is enabled, the available read buffer space computation is overly-pessimistic, which results in severely throttled i/o, even in the absence of parity errors. For example, if the 4k read buffer contains 1k processed data, the input worker will compute available space of 333 bytes, despite 3k being available. At 1365 chars of processed data, 0 space available is computed. *Divide remaining space* by 3, truncating down (if left == 2, left = 0). Reported-by: Christian Riesch <christian.riesch@omicron.at> Conflicts: drivers/tty/n_tty.c Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysv')
0 files changed, 0 insertions, 0 deletions