[PATCH v2 5/6] vhost: fix and refactor VDUSE reconnect log check

David Marchand david.marchand at redhat.com
Thu Oct 24 10:36:20 CEST 2024


On Thu, Oct 24, 2024 at 9:55 AM Maxime Coquelin
<maxime.coquelin at redhat.com> wrote:
> -               if (reconnect_log->nr_vrings != total_queues) {
> -                       VHOST_CONFIG_LOG(name, ERR,
> -                                       "Queues number mismatch between backend (%u) and reconnection file (%u)",
> -                                       total_queues, reconnect_log->nr_vrings);
> -                       ret = -1;
> +               ret = vduse_reconnect_log_check(reconnect_log, name, features, total_queues);
> +               if (ret < 0) {
> +                       VHOST_CONFIG_LOG(name, ERR, "Reconnection log file check failed");

Idem.
Patch 6 will remove it.


>                         goto out_log_unmap;
>                 }
>         } else if (errno == ENOENT) {
> --
> 2.46.2
>


-- 
David Marchand



More information about the dev mailing list