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)
commit89cee917deb5bf0dc9da269a38622588d06cb6be
treeff7285962e65a9444d8debcb232406b939853570
parented0483fa06e0efb86a82e382a00dbad02b62807c
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