]> git.baikalelectronics.ru Git - kernel.git/commit
macvtap: do not add self to waitqueue if doing a nonblock read
authorJason Wang <jasowang@redhat.com>
Wed, 5 Jun 2013 23:54:34 +0000 (23:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jun 2013 06:49:08 +0000 (23:49 -0700)
commit79a53effad76e382767716927795fa28eb122ac4
treeff7285962e65a9444d8debcb232406b939853570
parentc777bba68c879f1edb89e936d35c4ba534b9a3d3
macvtap: do not add self to waitqueue if doing a nonblock read

There's no need to add self to waitqueue if doing a nonblock read. This could
help to avoid the spinlock contention.

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