Skip to content

9pfs: v9fs_reclaim_fd() fixes

Christian Schoenebeck qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Patch 2: Decrement global variable total_open_fd on main thread, not on fs driver background thread.
- Patch 2: Update commit log about file descriptor leak being fixed.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29pfs: fix concurrent v9fs_reclaim_fd() callshw/9pfs/9p.c hw/9pfs/9p.h+11 -00 replies
2/29pfs: fix FD leak and reduce latency of v9fs_reclaim_fd()hw/9pfs/9p.c+20 -93 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchGreg Kurz
1/2R-b
2/2R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] 9pfs: v9fs_reclaim_fd() fixes

Three fixes for 9p server's v9fs_reclaim_fd() function:

* Patch 1 fixes a concurrency issue.

* Patch 2 fixes a file descriptor leak and optimizes overall latency. On a test machine with ~800,000 FIDs, this reduced execution duration of v9fs_reclaim_fd() from 30ms to 1ms.

V2:
- Patch 2: Decrement global variable total_open_fd on main thread, not on fs driver background thread.
- Patch 2: Update commit log about file descriptor leak being fixed.

Christian Schoenebeck (2):
9pfs: fix concurrent v9fs_reclaim_fd() calls 9pfs: fix FD leak and reduce latency of v9fs_reclaim_fd()

 hw/9pfs/9p.c | 39 ++++++++++++++++++++++++++++++---------
 hw/9pfs/9p.h |  1 +
 2 files changed, 31 insertions(+), 9 deletions(-)
Signature · 1 line
2.39.5