search for: 2e370a229fea

Displaying 5 results from an estimated 5 matches for "2e370a229fea".

2019 Oct 18
2
read_barrier_depends() usage in vhost.c
...e a concurrent access involved, in which case READ_ONCE should also be used. So I would propose something like the diff below, but I'd still be glad to hear whether I'm barking up the wrong tree. Will --->8 diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 36ca2cf419bf..2e370a229fea 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -2107,6 +2107,7 @@ static int get_indirect(struct vhost_virtqueue *vq, { struct vring_desc desc; unsigned int i = 0, count, found = 0; + __virtio64 addr = READ_ONCE(indirect->addr); u32 len = vhost32_to_cpu(vq, indirect-&gt...
2019 Oct 18
2
read_barrier_depends() usage in vhost.c
...e a concurrent access involved, in which case READ_ONCE should also be used. So I would propose something like the diff below, but I'd still be glad to hear whether I'm barking up the wrong tree. Will --->8 diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 36ca2cf419bf..2e370a229fea 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -2107,6 +2107,7 @@ static int get_indirect(struct vhost_virtqueue *vq, { struct vring_desc desc; unsigned int i = 0, count, found = 0; + __virtio64 addr = READ_ONCE(indirect->addr); u32 len = vhost32_to_cpu(vq, indirect-&gt...
2019 Oct 21
0
read_barrier_depends() usage in vhost.c
...ase READ_ONCE should also be used. So I would propose > something like the diff below, but I'd still be glad to hear whether I'm > barking up the wrong tree. > > Will > > --->8 > > diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c > index 36ca2cf419bf..2e370a229fea 100644 > --- a/drivers/vhost/vhost.c > +++ b/drivers/vhost/vhost.c > @@ -2107,6 +2107,7 @@ static int get_indirect(struct vhost_virtqueue *vq, > { > struct vring_desc desc; > unsigned int i = 0, count, found = 0; > + __virtio64 addr = READ_ONCE(indirect->addr); >...
2019 Oct 16
4
read_barrier_depends() usage in vhost.c
Hi all, In an attempt to remove the remaining traces of [smp_]read_barrier_depends() following my previous patches to strengthen READ_ONCE() for Alpha [1], I ended up trying to decipher the read_barrier_depends() usage in the vhost driver: --->8 // drivers/vhost/vhost.c static int get_indirect(struct vhost_virtqueue *vq, struct iovec iov[], unsigned int iov_size, unsigned int *out_num,
2019 Oct 16
4
read_barrier_depends() usage in vhost.c
Hi all, In an attempt to remove the remaining traces of [smp_]read_barrier_depends() following my previous patches to strengthen READ_ONCE() for Alpha [1], I ended up trying to decipher the read_barrier_depends() usage in the vhost driver: --->8 // drivers/vhost/vhost.c static int get_indirect(struct vhost_virtqueue *vq, struct iovec iov[], unsigned int iov_size, unsigned int *out_num,