Re: [net-next rfc V3 2/9] macvtap: do not add self to waitqueue if doing a nonblock read

2013-06-05 Thread Michael S. Tsirkin
On Wed, Jun 05, 2013 at 02:36:25PM +0800, Jason Wang wrote: > There's no need to add self to waitqueue if doing a nonblock read. This could > help to avoid the spinlock contention. > > Signed-off-by: Jason Wang Acked-by: Michael S. Tsirkin > --- > drivers/net/macvtap.c |7 +-- > 1 fil

[net-next rfc V3 2/9] macvtap: do not add self to waitqueue if doing a nonblock read

2013-06-04 Thread Jason Wang
There's no need to add self to waitqueue if doing a nonblock read. This could help to avoid the spinlock contention. Signed-off-by: Jason Wang --- drivers/net/macvtap.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c in