Re: [RFC PATCH v3 5/8] vhost: annotate need reply handling

2022-04-22 Thread Maxime Coquelin
On 4/11/22 13:00, David Marchand wrote: When a reply from the slave is required (VHOST_USER_NEED_REPLY flag), a spinlock is taken before sending the message. This spinlock is released if an error occurs when sending the message, and once a reply is received. A problem is that this lock is tak

[RFC PATCH v3 5/8] vhost: annotate need reply handling

2022-04-11 Thread David Marchand
When a reply from the slave is required (VHOST_USER_NEED_REPLY flag), a spinlock is taken before sending the message. This spinlock is released if an error occurs when sending the message, and once a reply is received. A problem is that this lock is taken under a branch and annotating conditionall