diff options
| author | Nicholas Piggin <[email protected]> | 2018-09-09 05:39:14 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-10 16:04:31 +0000 |
| commit | 6e7f6b82c60afb46ff71c2127421c66207966d6d (patch) | |
| tree | 379d99391da9a5e9404964b4cf5cd28ec49889dd /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | Linux 4.19-rc3 (diff) | |
| download | kernel-6e7f6b82c60afb46ff71c2127421c66207966d6d.tar.gz kernel-6e7f6b82c60afb46ff71c2127421c66207966d6d.zip | |
tty: hvc: hvc_poll() fix read loop hang
Commit ec97eaad1383 ("tty: hvc: hvc_poll() break hv read loop") causes
the virtio console to hang at times (e.g., if you paste a bunch of
characters to it.
The reason is that get_chars must return 0 before we can be sure the
driver will kick or poll input again, but this change only scheduled a
poll if get_chars had returned a full count. Change this to poll on
any > 0 count.
Reported-by: Matteo Croce <[email protected]>
Reported-by: Jason Gunthorpe <[email protected]>
Tested-by: Matteo Croce <[email protected]>
Tested-by: Jason Gunthorpe <[email protected]>
Tested-by: Leon Romanovsky <[email protected]>
Signed-off-by: Nicholas Piggin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
