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(-)
--
2.39.5