Skip to content

Commit eaaa4e9

Browse files
Arseniy Krasnovdavem330
authored andcommitted
vsock/loopback: don't disable irqs for queue access
This replaces 'skb_queue_tail()' with 'virtio_vsock_skb_queue_tail()'. The first one uses 'spin_lock_irqsave()', second uses 'spin_lock_bh()'. There is no need to disable interrupts in the loopback transport as there is no access to the queue with skbs from interrupt context. Both virtio and vhost transports work in the same way. Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c61fcc0 commit eaaa4e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/vmw_vsock/vsock_loopback.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ static int vsock_loopback_send_pkt(struct sk_buff *skb)
3131
struct vsock_loopback *vsock = &the_vsock_loopback;
3232
int len = skb->len;
3333

34-
skb_queue_tail(&vsock->pkt_queue, skb);
35-
34+
virtio_vsock_skb_queue_tail(&vsock->pkt_queue, skb);
3635
queue_work(vsock->workqueue, &vsock->pkt_work);
3736

3837
return len;

0 commit comments

Comments
 (0)