mbox series

[0/2] 9pfs: v9fs_reclaim_fd() fixes

Message ID cover.1741101468.git.qemu_oss@crudebyte.com (mailing list archive)
Headers show
Series 9pfs: v9fs_reclaim_fd() fixes | expand

Message

Christian Schoenebeck March 4, 2025, 3:17 p.m. UTC
Two fixes for 9p server's v9fs_reclaim_fd() function:

* Patch 1 fixes a concurrency issue.

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

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

 hw/9pfs/9p.c | 36 +++++++++++++++++++++++++++---------
 hw/9pfs/9p.h |  1 +
 2 files changed, 28 insertions(+), 9 deletions(-)