Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184594
b: refs/heads/master
c: 39286fa
h: refs/heads/master
v: v3
  • Loading branch information
Sridhar Samudrala authored and Michael S. Tsirkin committed Feb 28, 2010
1 parent 69b01a9 commit 48197b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6db3f5c11dc7ed5712d5d5682aa34025ee5248e
refs/heads/master: 39286fa41a8b2c6a9c1f656a7b3c3efca95bc1b9
6 changes: 5 additions & 1 deletion trunk/drivers/vhost/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ static void handle_tx(struct vhost_net *net)
return;

wmem = atomic_read(&sock->sk->sk_wmem_alloc);
if (wmem >= sock->sk->sk_sndbuf)
if (wmem >= sock->sk->sk_sndbuf) {
mutex_lock(&vq->mutex);
tx_poll_start(net, sock);
mutex_unlock(&vq->mutex);
return;
}

use_mm(net->dev.mm);
mutex_lock(&vq->mutex);
Expand Down

0 comments on commit 48197b8

Please sign in to comment.