]> git.baikalelectronics.ru Git - kernel.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)
commite242d343e613c17cf941b8c1a4f64da2b0d70786
tree107bfb0355a6943e6765293702828fe109310920
parent4ff00390e09cc2c2767f7565a3ad77b0ae4221e9
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