Commit 187cfc439f7b1a7c91ff72d561b2a7c9c0b83431
1 parent
d301a9f3ff
Exists in
master
and in
7 other branches
hvc_console: Remove tty->low_latency on pseries backends
The hvcs and hvsi backends both set tty->low_latency to one, along with more or less scary comments regarding bugs or races that would happen if not doing so. However, they also both call tty_flip_buffer_push() in conexts where it's illegal to do so since some recent tty changes (or at least it may have been illegal always but it nows blows) when low_latency is set (ie, hard interrupt or with spinlock held and irqs disabled). This removes the setting for now to get them back to working condition, we'll have to address the races described in the comments separately if they are still an issue (some of this might have been fixed already). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Showing 2 changed files with 0 additions and 10 deletions Side-by-side Diff
drivers/char/hvcs.c
... | ... | @@ -1139,15 +1139,6 @@ |
1139 | 1139 | hvcsd->tty = tty; |
1140 | 1140 | tty->driver_data = hvcsd; |
1141 | 1141 | |
1142 | - /* | |
1143 | - * Set this driver to low latency so that we actually have a chance at | |
1144 | - * catching a throttled TTY after we flip_buffer_push. Otherwise the | |
1145 | - * flush_to_async may not execute until after the kernel_thread has | |
1146 | - * yielded and resumed the next flip_buffer_push resulting in data | |
1147 | - * loss. | |
1148 | - */ | |
1149 | - tty->low_latency = 1; | |
1150 | - | |
1151 | 1142 | memset(&hvcsd->buffer[0], 0x00, HVCS_BUFF_LEN); |
1152 | 1143 | |
1153 | 1144 | /* |