tun: don't look at current when non-blocking
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 6 Oct 2013 18:25:12 +0000 (21:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Oct 2013 19:38:35 +0000 (15:38 -0400)
commit5c0c52c9102f90c9d5674fb6c5f4f23e3019dd9f
treee3548b8081b5a25b0bf9e8460325657e489421a2
parent66e358a84738ce93e192caed0e09bd44f26e48eb
tun: don't look at current when non-blocking

We play with a wait queue even if socket is
non blocking. This is an obvious waste.
Besides, it will prevent calling the non blocking
variant when current is not valid.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c