[Virtio-fs] [PATCH 2/2] virtiofs: reduce lock contention on fpq->lock

Miklos Szeredi miklos at szeredi.hu
Tue Sep 7 08:57:07 UTC 2021


On Thu, 12 Aug 2021 at 07:46, Jeffle Xu <jefflexu at linux.alibaba.com> wrote:
>
> From: Liu Bo <bo.liu at linux.alibaba.com>
>
> Since %req has been removed from fpq->processing_list, no one except
> request_wait_answer() is looking at this %req and request_wait_answer()
> waits only on FINISH flag, it's OK to remove fpq->lock after %req is
> dropped from the list.

I'll accept a patch to remove FR_SENT completely from virtiofs.

This flag is used for queuing interrupts but interrupts are not yet
implemented in virtiofs.    When blocking lock support is added the
interrupt handling needs to be properly designed.

Thanks,
Miklos




More information about the Virtio-fs mailing list