Re: [PATCH net V2] tuntap: correctly wake up process during uninit

2016-05-20 Thread David Miller
From: Jason Wang Date: Thu, 19 May 2016 13:36:51 +0800 > We used to check dev->reg_state against NETREG_REGISTERED after each > time we are woke up. But after commit 9e641bdcfa4e ("net-tun: > restructure tun_do_read for better sleep/wakeup efficiency"), it uses > skb_recv_datagram() which does no

Re: [PATCH net V2] tuntap: correctly wake up process during uninit

2016-05-19 Thread Michael S. Tsirkin
On Thu, May 19, 2016 at 01:36:51PM +0800, Jason Wang wrote: > We used to check dev->reg_state against NETREG_REGISTERED after each > time we are woke up. But after commit 9e641bdcfa4e ("net-tun: > restructure tun_do_read for better sleep/wakeup efficiency"), it uses > skb_recv_datagram() which does

Re: [PATCH net V2] tuntap: correctly wake up process during uninit

2016-05-19 Thread Eric Dumazet
On Thu, 2016-05-19 at 13:36 +0800, Jason Wang wrote: > We used to check dev->reg_state against NETREG_REGISTERED after each > time we are woke up. But after commit 9e641bdcfa4e ("net-tun: > restructure tun_do_read for better sleep/wakeup efficiency"), it uses > skb_recv_datagram() which does not ch