]> asedeno.scripts.mit.edu Git - linux.git/commit
tty: hvc: hvc_write() may sleep
authorNicholas Piggin <npiggin@gmail.com>
Mon, 30 Apr 2018 14:55:56 +0000 (00:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Jul 2018 10:12:32 +0000 (20:12 +1000)
commit550ddadcc7580ec2a6c22d4ed04291bc6e2428fb
tree107bfb0355a6943e6765293702828fe109310920
parentcfb5946b55f1dfd19e042feae1fbff6041e25a98
tty: hvc: hvc_write() may sleep

Rework the hvc_write loop to drop and re-take the spinlock on each
iteration, add a cond_resched. Don't bother with an initial hvc_push
initially, which makes the logic simpler -- just do a hvc_push on
each time around the loop.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/tty/hvc/hvc_console.c