Skip to content

virtiofsd: multithreading preparation

Stefan Hajnoczi qemu-devel virtio-fs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5virtiofsd: skip unnecessary vu_queue_get_avail_bytes()contrib/virtiofsd/fuse_virtio.c+5 -82 replies
2/5virtiofsd: prevent lo_lookup() NULL pointer dereferencecontrib/virtiofsd/passthrough_ll.c+4 -06 replies
3/5virtiofsd: make lo_release() atomiccontrib/virtiofsd/passthrough_ll.c+8 -41 reply
4/5virtiofsd: drop lo_dirp->fd fieldcontrib/virtiofsd/passthrough_ll.c+7 -62 replies
5/5virtiofsd: prevent races with lo_dirp_put()contrib/virtiofsd/passthrough_ll.c+36 -63 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchLiu BoDr. David Alan Gilbert
1/5R-b
2/5
3/5R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/5] virtiofsd: multithreading preparation

virtiofsd is not ready for multithreading yet. This patch series starts to make the code capable of processing multiple FUSE requests simultaneously. I'm sending these fixes split into several patch series as I make progress auditing the code for thread-safety issues. The final patch series will use a threadpool to process requests from a virtqueue in parallel and it will also enable multiqueue.

Patches 1 & 2 are cleanups discovered when auditing the code. They are not related to multithreading.

Stefan Hajnoczi (5):
virtiofsd: skip unnecessary vu_queue_get_avail_bytes()
virtiofsd: prevent lo_lookup() NULL pointer dereference
virtiofsd: make lo_release() atomic
virtiofsd: drop lo_dirp->fd field
virtiofsd: prevent races with lo_dirp_put()

 contrib/virtiofsd/fuse_virtio.c    | 13 +++---
 contrib/virtiofsd/passthrough_ll.c | 71 +++++++++++++++++++++++-------
 2 files changed, 60 insertions(+), 24 deletions(-)
Signature · 1 line
2.21.0