[Virtio-fs] [PATCH 3/3] virtio-fs: Waiting for pending forget requests to finish
Vivek Goyal
vgoyal at redhat.com
Tue Jun 4 13:29:36 UTC 2019
On Tue, Jun 04, 2019 at 12:06:40PM +0800, Peng Tao wrote:
[..]
> > +static void virtio_fs_flush_hiprio_queue(struct virtio_fs_vq *fsvq)
> > +{
> > + struct virtio_fs_forget *forget;
> > +
> > + WARN_ON(fsvq->in_flight < 0);
> > +
> > + /* Go through pending forget reuests and free them */
> > + spin_lock(&fsvq->lock);
> > + while(1) {
> > + forget = list_first_entry_or_null(&fsvq->queued_reqs,
> > + struct virtio_fs_forget, list);
> > + if (!forget)
> > + break;
> missing list_del()?
Good catch. Will fix it.
Vivek
More information about the Virtio-fs
mailing list