[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 6/6] libvduse: Add support for reconnecting
From: |
Yongji Xie |
Subject: |
Re: [PATCH v2 6/6] libvduse: Add support for reconnecting |
Date: |
Wed, 16 Mar 2022 10:33:33 +0800 |
On Tue, Mar 15, 2022 at 9:48 PM Stefan Hajnoczi <stefanha@redhat.com> wrote:
>
> On Tue, Feb 15, 2022 at 06:59:43PM +0800, Xie Yongji wrote:
> > +static int vduse_queue_inflight_get(VduseVirtq *vq, int desc_idx)
> > +{
> > + vq->log->inflight.desc[desc_idx].counter = vq->counter++;
> > + vq->log->inflight.desc[desc_idx].inflight = 1;
>
> Is a barrier needed between these two lines to prevent inflight = 1 with
> an undefined counter value?
Yes, I will fix it in v3.
Thanks,
Yongji