On 2020/12/16 下午5:23, Michael S. Tsirkin wrote:
On Wed, Dec 16, 2020 at 04:20:37PM +0800, wangyunjian wrote:
From: Yunjian Wang<wangyunjian@xxxxxxxxxx>
Currently we break the loop and wake up the vhost_worker when
sendmsg fails. When the worker wakes up again, we'll meet the
same error. This will cause high CPU load. To fix this issue,
we can skip this description by ignoring the error. When we
exceeds sndbuf, the return value of sendmsg is -EAGAIN. In
the case we don't skip the description and don't drop packet.
Question: with this patch, what happens if sendmsg is interrupted by a signal?
Since we use MSG_DONTWAIT, we don't need to care about signal I think.
Thanks
_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/virtualization