Skip to content

Commit 9e09d0e

Browse files
mikechristiemstsirkin
authored andcommitted
vhost_sock: convert to vhost_vq_work_queue
Convert from vhost_work_queue to vhost_vq_work_queue, so we can drop vhost_work_queue. Signed-off-by: Mike Christie <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 493b94b commit 9e09d0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/vhost/vsock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ vhost_transport_send_pkt(struct sk_buff *skb)
285285
atomic_inc(&vsock->queued_replies);
286286

287287
virtio_vsock_skb_queue_tail(&vsock->send_pkt_queue, skb);
288-
vhost_work_queue(&vsock->dev, &vsock->send_pkt_work);
288+
vhost_vq_work_queue(&vsock->vqs[VSOCK_VQ_RX], &vsock->send_pkt_work);
289289

290290
rcu_read_unlock();
291291
return len;
@@ -583,7 +583,7 @@ static int vhost_vsock_start(struct vhost_vsock *vsock)
583583
/* Some packets may have been queued before the device was started,
584584
* let's kick the send worker to send them.
585585
*/
586-
vhost_work_queue(&vsock->dev, &vsock->send_pkt_work);
586+
vhost_vq_work_queue(&vsock->vqs[VSOCK_VQ_RX], &vsock->send_pkt_work);
587587

588588
mutex_unlock(&vsock->dev.mutex);
589589
return 0;

0 commit comments

Comments
 (0)