Re: [PATCH] tun: fix blocking read

2019-02-25 Thread Timur Celik
On Mon, Feb 25, 2019 at 10:25:48AM -0800, David Miller wrote: > From: Eric Dumazet > Date: Mon, 25 Feb 2019 07:53:08 -0800 > >> >> >> On 02/24/2019 10:12 PM, David Miller wrote: >>> From: Timur Celik >>> Date: Sat, 23 Feb 2019 12:53:13 +0100 >>> This patch moves setting of the current

Re: [PATCH] tun: fix blocking read

2019-02-25 Thread David Miller
From: Eric Dumazet Date: Mon, 25 Feb 2019 07:53:08 -0800 > > > On 02/24/2019 10:12 PM, David Miller wrote: >> From: Timur Celik >> Date: Sat, 23 Feb 2019 12:53:13 +0100 >> >>> This patch moves setting of the current state into the loop. Otherwise >>> the task may end up in a busy wait loop

Re: [PATCH] tun: fix blocking read

2019-02-25 Thread Eric Dumazet
On 02/24/2019 10:12 PM, David Miller wrote: > From: Timur Celik > Date: Sat, 23 Feb 2019 12:53:13 +0100 > >> This patch moves setting of the current state into the loop. Otherwise >> the task may end up in a busy wait loop if none of the break conditions >> are met. >> >> Signed-off-by: Timur

Re: [PATCH] tun: fix blocking read

2019-02-24 Thread David Miller
From: Timur Celik Date: Sat, 23 Feb 2019 12:53:13 +0100 > This patch moves setting of the current state into the loop. Otherwise > the task may end up in a busy wait loop if none of the break conditions > are met. > > Signed-off-by: Timur Celik Applied and queued up for -stable, thanks.

[PATCH] tun: fix blocking read

2019-02-23 Thread Timur Celik
This patch moves setting of the current state into the loop. Otherwise the task may end up in a busy wait loop if none of the break conditions are met. Signed-off-by: Timur Celik --- drivers/net/tun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/tun.c