summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-11-28 22:27:44 +0300
committerDavid S. Miller <davem@davemloft.net>2010-11-28 22:27:44 +0300
commita301e1703edc088592f8c5c16f9bdd34a0792776 (patch)
tree7a27abde4079ea65327d3550630108c1445cb6e9
parent0147fc058d11bd4009b126d09974d2c8f48fef15 (diff)
parent11cd1a8b8cad1acfc140d9acce93762a9c140b20 (diff)
downloadlinux-a301e1703edc088592f8c5c16f9bdd34a0792776.tar.xz
Merge branch 'vhost-net' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
-rw-r--r--drivers/vhost/net.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 4b4da5b86ff9..f442668a1e52 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -129,8 +129,9 @@ static void handle_tx(struct vhost_net *net)
size_t hdr_size;
struct socket *sock;
- sock = rcu_dereference_check(vq->private_data,
- lockdep_is_held(&vq->mutex));
+ /* TODO: check that we are running from vhost_worker?
+ * Not sure it's worth it, it's straight-forward enough. */
+ sock = rcu_dereference_check(vq->private_data, 1);
if (!sock)
return;