]> 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)
commit0f189cd136eab554bebec44d2c533eeba1ce1464
treeff7285962e65a9444d8debcb232406b939853570
parentd9789444d35d55b0520c72cc4aae64ffd8bd470f
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