On 1/19/23 19:46, David Marchand wrote:
Dedicate send_vhost_slave_message() helper to the case when no reply is
needed.

Add a send_vhost_slave_message_process_reply() helper for the opposite.
This new helper merges both send_vhost_slave_message() and the code
previously in process_slave_message_reply().
The slave_req_lock lock is then only handled in this helper which will
make lock checks trivial.

Signed-off-by: David Marchand <david.march...@redhat.com>
---
  lib/vhost/vhost_user.c | 119 ++++++++++++++++++-----------------------
  1 file changed, 51 insertions(+), 68 deletions(-)


Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>

Thanks,
Maxime

Reply via email to