Re: [13/15] tty: hvc: hvc_write may sleep

From: Michael Ellerman
Date: Mon Aug 13 2018 - 07:23:59 EST


On Mon, 2018-04-30 at 14:55:56 UTC, Nicholas Piggin wrote:
> 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@xxxxxxxxx>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/550ddadcc7580ec2a6c22d4ed04291

cheers