vhost-vsock: remove unused vq variable
Subsystems (6)
PATCH 1/2 vhost-vsock: remove unused vq variable
--- drivers/vhost/vsock.c | 3 --- 1 file changed, 3 deletions(-)
drivers/vhost/vsock.c +0 -3
@@ -195,7 +195,6 @@ static int vhost_transport_send_pkt(struct virtio_vsock_pkt *pkt) {struct vhost_vsock *vsock; -struct vhost_virtqueue *vq;int len = pkt->len;/* Find the vhost_vsock according to guest context id */
@@ -205,8 +204,6 @@ vhost_transport_send_pkt(struct virtio_vsock_pkt *pkt)return -ENODEV ; } - vq = &vsock->vqs[VSOCK_VQ_RX ]; -if (pkt->reply)atomic_inc (&vsock->queued_replies);
Signature · 1 line
2.7.4
PATCH 2/2 vhost: remove unnecessary smp_mb from vhost_work_queue
test_and_set_bit() already implies a memory barrier.
--- drivers/vhost/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vhost/vhost.c +1 -1
@@ -261,8 +261,8 @@ void vhost_work_queue(struct vhost_dev *dev, struct vhost_work *work)if (!test_and_set_bit (VHOST_WORK_QUEUED , &work->flags)) {/* We can only add the work to the list after we're * sure it was not in the list. +* test_and_set_bit() implies a memory barrier. */ -smp_mb ();llist_add (&work->node, &dev->work_list);wake_up_process (dev->worker); }
Signature · 1 line
2.7.4
PATCH 2/2 vhost: remove unnecessary smp_mb from vhost_work_queue
In reply to Peng Taotest_and_set_bit() already implies a memory barrier.
--- drivers/vhost/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vhost/vhost.c +1 -1
@@ -261,8 +261,8 @@ void vhost_work_queue(struct vhost_dev *dev, struct vhost_work *work)if (!test_and_set_bit (VHOST_WORK_QUEUED , &work->flags)) {/* We can only add the work to the list after we're * sure it was not in the list. +* test_and_set_bit() implies a memory barrier. */ -smp_mb ();llist_add (&work->node, &dev->work_list);wake_up_process (dev->worker); }
Signature · 1 line
2.7.4
Quoted 4 lines · Peng Tao
Signed-off-by Peng Tao <[email protected]>--- drivers/vhost/vsock.c | 3 --- 1 file changed, 3 deletions(-)
Quoted 4 lines · Peng Tao
Signed-off-by Peng Tao <[email protected]>--- drivers/vhost/vsock.c | 3 --- 1 file changed, 3 deletions(-)
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH 2/2] vhost: remove unnecessary smp_mb from vhost_work_queue
In reply to Peng TaoQuoted 6 lines · Peng Tao
test_and_set_bit()already implies a memory barrier.Signed-off-by Peng Tao <[email protected]>--- drivers/vhost/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
From: Peng Tao <[email protected]>
Date: Wed, 7 Dec 2016 17:52:18 +0800
Quoted 1 line
Signed-off-by Peng Tao <[email protected]>
Applied.
From: Peng Tao <[email protected]>
Date: Wed, 7 Dec 2016 17:52:18 +0800
Quoted 1 line
Signed-off-by Peng Tao <[email protected]>
Applied.
Re: [PATCH 2/2] vhost: remove unnecessary smp_mb from vhost_work_queue
In reply to Peng TaoFrom: Peng Tao <[email protected]>
Date: Wed, 7 Dec 2016 17:52:19 +0800
Quoted 3 lines
test_and_set_bit()already implies a memory barrier.Signed-off-by Peng Tao <[email protected]>
Applied.
Re: [PATCH 2/2] vhost: remove unnecessary smp_mb from vhost_work_queue
In reply to Peng TaoFrom: Peng Tao <[email protected]>
Date: Wed, 7 Dec 2016 17:52:19 +0800
Quoted 3 lines
test_and_set_bit()already implies a memory barrier.Signed-off-by Peng Tao <[email protected]>
Applied.