Displaying 16 results from an estimated 16 matches for "virtio_vsock_flush_work".
Did you mean:
virtio_vsock_flush_works
2019 May 30
2
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...4df10ab61..ad093ce96693 100644
>>> --- a/net/vmw_vsock/virtio_transport.c
>>> +++ b/net/vmw_vsock/virtio_transport.c
>>> @@ -660,6 +660,15 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
>>> return ret;
>>> }
>>> +static void virtio_vsock_flush_works(struct virtio_vsock *vsock)
>>> +{
>>> + flush_work(&vsock->loopback_work);
>>> + flush_work(&vsock->rx_work);
>>> + flush_work(&vsock->tx_work);
>>> + flush_work(&vsock->event_work);
>>> + flush_work(&vsock->...
2019 May 30
2
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...4df10ab61..ad093ce96693 100644
>>> --- a/net/vmw_vsock/virtio_transport.c
>>> +++ b/net/vmw_vsock/virtio_transport.c
>>> @@ -660,6 +660,15 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
>>> return ret;
>>> }
>>> +static void virtio_vsock_flush_works(struct virtio_vsock *vsock)
>>> +{
>>> + flush_work(&vsock->loopback_work);
>>> + flush_work(&vsock->rx_work);
>>> + flush_work(&vsock->tx_work);
>>> + flush_work(&vsock->event_work);
>>> + flush_work(&vsock->...
2019 May 29
2
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...mw_vsock/virtio_transport.c
> index e694df10ab61..ad093ce96693 100644
> --- a/net/vmw_vsock/virtio_transport.c
> +++ b/net/vmw_vsock/virtio_transport.c
> @@ -660,6 +660,15 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
> return ret;
> }
>
> +static void virtio_vsock_flush_works(struct virtio_vsock *vsock)
> +{
> + flush_work(&vsock->loopback_work);
> + flush_work(&vsock->rx_work);
> + flush_work(&vsock->tx_work);
> + flush_work(&vsock->event_work);
> + flush_work(&vsock->send_pkt_work);
> +}
> +
> static voi...
2019 May 29
2
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...mw_vsock/virtio_transport.c
> index e694df10ab61..ad093ce96693 100644
> --- a/net/vmw_vsock/virtio_transport.c
> +++ b/net/vmw_vsock/virtio_transport.c
> @@ -660,6 +660,15 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
> return ret;
> }
>
> +static void virtio_vsock_flush_works(struct virtio_vsock *vsock)
> +{
> + flush_work(&vsock->loopback_work);
> + flush_work(&vsock->rx_work);
> + flush_work(&vsock->tx_work);
> + flush_work(&vsock->event_work);
> + flush_work(&vsock->send_pkt_work);
> +}
> +
> static voi...
2019 May 30
2
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...; --- a/net/vmw_vsock/virtio_transport.c
>>>>> +++ b/net/vmw_vsock/virtio_transport.c
>>>>> @@ -660,6 +660,15 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
>>>>> return ret;
>>>>> }
>>>>> +static void virtio_vsock_flush_works(struct virtio_vsock *vsock)
>>>>> +{
>>>>> + flush_work(&vsock->loopback_work);
>>>>> + flush_work(&vsock->rx_work);
>>>>> + flush_work(&vsock->tx_work);
>>>>> + flush_work(&vsock->event_work);
&...
2019 May 30
2
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...; --- a/net/vmw_vsock/virtio_transport.c
>>>>> +++ b/net/vmw_vsock/virtio_transport.c
>>>>> @@ -660,6 +660,15 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
>>>>> return ret;
>>>>> }
>>>>> +static void virtio_vsock_flush_works(struct virtio_vsock *vsock)
>>>>> +{
>>>>> + flush_work(&vsock->loopback_work);
>>>>> + flush_work(&vsock->rx_work);
>>>>> + flush_work(&vsock->tx_work);
>>>>> + flush_work(&vsock->event_work);
&...
2019 May 31
2
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...93,9 @@ static void virtio_vsock_remove(struct virtio_device *vdev)
>>>>>>> vsock->event_run = false;
>>>>>>> mutex_unlock(&vsock->event_lock);
>>>>>>> + /* Flush all pending works */
>>>>>>> + virtio_vsock_flush_works(vsock);
>>>>>>> +
>>>>>>> /* Flush all device writes and interrupts, device will not use any
>>>>>>> * more buffers.
>>>>>>> */
>>>>>>> @@ -726,6 +732,11 @@ static void virt...
2019 May 31
2
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...93,9 @@ static void virtio_vsock_remove(struct virtio_device *vdev)
>>>>>>> vsock->event_run = false;
>>>>>>> mutex_unlock(&vsock->event_lock);
>>>>>>> + /* Flush all pending works */
>>>>>>> + virtio_vsock_flush_works(vsock);
>>>>>>> +
>>>>>>> /* Flush all device writes and interrupts, device will not use any
>>>>>>> * more buffers.
>>>>>>> */
>>>>>>> @@ -726,6 +732,11 @@ static void virt...
2019 Jun 13
1
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...emove(struct virtio_device *vdev)
>>>>>>>>> vsock->event_run = false;
>>>>>>>>> mutex_unlock(&vsock->event_lock);
>>>>>>>>> + /* Flush all pending works */
>>>>>>>>> + virtio_vsock_flush_works(vsock);
>>>>>>>>> +
>>>>>>>>> /* Flush all device writes and interrupts, device will not use any
>>>>>>>>> * more buffers.
>>>>>>>>> */
>>>>>>>>...
2019 May 30
0
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...gt; > --- a/net/vmw_vsock/virtio_transport.c
> > > > +++ b/net/vmw_vsock/virtio_transport.c
> > > > @@ -660,6 +660,15 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
> > > > return ret;
> > > > }
> > > > +static void virtio_vsock_flush_works(struct virtio_vsock *vsock)
> > > > +{
> > > > + flush_work(&vsock->loopback_work);
> > > > + flush_work(&vsock->rx_work);
> > > > + flush_work(&vsock->tx_work);
> > > > + flush_work(&vsock->event_work);
> &...
2019 May 29
0
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...> > index e694df10ab61..ad093ce96693 100644
> > --- a/net/vmw_vsock/virtio_transport.c
> > +++ b/net/vmw_vsock/virtio_transport.c
> > @@ -660,6 +660,15 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
> > return ret;
> > }
> > +static void virtio_vsock_flush_works(struct virtio_vsock *vsock)
> > +{
> > + flush_work(&vsock->loopback_work);
> > + flush_work(&vsock->rx_work);
> > + flush_work(&vsock->tx_work);
> > + flush_work(&vsock->event_work);
> > + flush_work(&vsock->send_pkt_work);
&g...
2019 May 31
0
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...,9 @@ static void virtio_vsock_remove(struct virtio_device *vdev)
> > > > > > vsock->event_run = false;
> > > > > > mutex_unlock(&vsock->event_lock);
> > > > > > + /* Flush all pending works */
> > > > > > + virtio_vsock_flush_works(vsock);
> > > > > > +
> > > > > > /* Flush all device writes and interrupts, device will not use any
> > > > > > * more buffers.
> > > > > > */
> > > > > > @@ -726,6 +732,11 @@ static void vi...
2019 Jun 06
0
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...ct virtio_device *vdev)
> > > > > > > > vsock->event_run = false;
> > > > > > > > mutex_unlock(&vsock->event_lock);
> > > > > > > > + /* Flush all pending works */
> > > > > > > > + virtio_vsock_flush_works(vsock);
> > > > > > > > +
> > > > > > > > /* Flush all device writes and interrupts, device will not use any
> > > > > > > > * more buffers.
> > > > > > > > */
> > > > &g...
2019 May 28
0
[PATCH 3/4] vsock/virtio: fix flush of works during the .remove()
...a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c
index e694df10ab61..ad093ce96693 100644
--- a/net/vmw_vsock/virtio_transport.c
+++ b/net/vmw_vsock/virtio_transport.c
@@ -660,6 +660,15 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
return ret;
}
+static void virtio_vsock_flush_works(struct virtio_vsock *vsock)
+{
+ flush_work(&vsock->loopback_work);
+ flush_work(&vsock->rx_work);
+ flush_work(&vsock->tx_work);
+ flush_work(&vsock->event_work);
+ flush_work(&vsock->send_pkt_work);
+}
+
static void virtio_vsock_remove(struct virtio_device *vd...
2019 May 28
8
[PATCH 0/4] vsock/virtio: several fixes in the .probe() and .remove()
During the review of "[PATCH] vsock/virtio: Initialize core virtio vsock
before registering the driver", Stefan pointed out some possible issues
in the .probe() and .remove() callbacks of the virtio-vsock driver.
This series tries to solve these issues:
- Patch 1 postpones the 'the_virtio_vsock' assignment at the end of the
.probe() to avoid that some sockets queue works when
2019 May 28
8
[PATCH 0/4] vsock/virtio: several fixes in the .probe() and .remove()
During the review of "[PATCH] vsock/virtio: Initialize core virtio vsock
before registering the driver", Stefan pointed out some possible issues
in the .probe() and .remove() callbacks of the virtio-vsock driver.
This series tries to solve these issues:
- Patch 1 postpones the 'the_virtio_vsock' assignment at the end of the
.probe() to avoid that some sockets queue works when