search for: vhost_vq_data

Displaying 2 results from an estimated 2 matches for "vhost_vq_data".

2010 Jul 29
1
[PATCH] vhost: locking/rcu cleanup
...eue *vq = &net->dev.vqs[VHOST_NET_VQ_TX]; unsigned out, in, s; int head; @@ -127,7 +128,7 @@ static void handle_tx(struct vhost_net *net) size_t len, total_len = 0; int err, wmem; size_t hdr_size; - struct socket *sock = rcu_dereference(vq->private_data); + struct socket *sock = vhost_vq_data(vq, &net->dev); if (!sock) return; @@ -305,7 +306,7 @@ static void handle_rx_big(struct vhost_net *net) size_t len, total_len = 0; int err; size_t hdr_size; - struct socket *sock = rcu_dereference(vq->private_data); + struct socket *sock = vhost_vq_data(vq, &net->dev);...
2010 Jul 29
1
[PATCH] vhost: locking/rcu cleanup
...eue *vq = &net->dev.vqs[VHOST_NET_VQ_TX]; unsigned out, in, s; int head; @@ -127,7 +128,7 @@ static void handle_tx(struct vhost_net *net) size_t len, total_len = 0; int err, wmem; size_t hdr_size; - struct socket *sock = rcu_dereference(vq->private_data); + struct socket *sock = vhost_vq_data(vq, &net->dev); if (!sock) return; @@ -305,7 +306,7 @@ static void handle_rx_big(struct vhost_net *net) size_t len, total_len = 0; int err; size_t hdr_size; - struct socket *sock = rcu_dereference(vq->private_data); + struct socket *sock = vhost_vq_data(vq, &net->dev);...