[PATCH v4 2/9] vhost: simplify need reply handling
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Jan 31 17:41:35 CET 2023
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.marchand at redhat.com>
> ---
> lib/vhost/vhost_user.c | 119 ++++++++++++++++++-----------------------
> 1 file changed, 51 insertions(+), 68 deletions(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list