# Re: \[PATCH v4 1/1\] Add timer to handle OOM situations

- From: Stefan Hajnoczi \<stefanha@redhat.com\>
- Date: 2016-08-10 18:22:36 
- List: netdev
- Page: https://ratatoskr.run/netdev/2016/08/11025168
- Thread: https://ratatoskr.run/netdev/2016/08/11024865/t.md

```text
On Thu, Aug 04, 2016 at 04:09:11PM +0200, ggarcia@abra.uab.cat wrote:
> From: Gerard Garcia <redacted>
> 
> Set up a rx timer to avoid packets being discarded when there is not 
> available memory in the host.
> 
> Signed-off-by: Gerard Garcia <redacted>
> 
> ---
> v4:
>  * Fix style.
> 
> v3:
>  * Avoid race condition when freeing timer.
> 
> v2:
> * Use of ERR_PTR/PTR_ERR/IS_ERR
> * Timer cleaned on device release.
> * Do not process more packets on error.
> 
>  drivers/vhost/vsock.c | 49 ++++++++++++++++++++++++++++++++++++++++---------
>  1 file changed, 40 insertions(+), 9 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
```

## Attachments

- [signature.asc](https://ratatoskr.run/netdev/2016/08/11025168/attachment/0) (application/pgp-signature, 473 bytes)
