Skip to content

virtio-fs: change handling of failure at request enqueue

Peter-Jan Gootzen virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtio-fs: let -ENOMEM bubble up or burst gentlyfs/fuse/virtio_fs.c+3 -31 reply
2/2virtio-fs: improved request latencies when Virtio queue is fullfs/fuse/virtio_fs.c+19 -150 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMax GurtovoyYoray ZackStefan Hajnoczi
SeriesR-b
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] virtio-fs: change handling of failure at request enqueue

This patch set aims to improve the latencies of virtio-fs requests when the system is under high load, namely when the application's IO depth is greater than the size of the Virtio queue.

We found that the handling of -ENOMEM when enqueueing requests is inconsistent with other parts of the kernel (e.g. FUSE) and also obstructs optimizing the enqueueing behavior.

It is important to first remove the -ENOMEM behavior as the new style of retrying virtio-fs requests in patch 2/2 is only correct in case of -ENOSPC. With -ENOMEM the failed enqueue might never be retried as there might not be another completion to trigger retrying the enqueue.

Note that this patch series is a revival of my patch that was last discussed in the mailing list on 2023-08-16.

Peter-Jan Gootzen (2):
virtio-fs: let -ENOMEM bubble up or burst gently
virtio-fs: improved request latencies when Virtio queue is full

 fs/fuse/virtio_fs.c | 40 ++++++++++++++++++++++------------------
 1 file changed, 22 insertions(+), 18 deletions(-)
Signature · 1 line
2.34.1