qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] 9pfs: v9fs_reclaim_fd() fixes
@ 2025-03-07  9:24 Christian Schoenebeck
  2025-03-07  9:22 ` [PATCH v2 1/2] 9pfs: fix concurrent v9fs_reclaim_fd() calls Christian Schoenebeck
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Christian Schoenebeck @ 2025-03-07  9:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: Greg Kurz, qemu-stable

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-03-18 19:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-07  9:24 [PATCH v2 0/2] 9pfs: v9fs_reclaim_fd() fixes Christian Schoenebeck
2025-03-07  9:22 ` [PATCH v2 1/2] 9pfs: fix concurrent v9fs_reclaim_fd() calls Christian Schoenebeck
2025-03-07  9:23 ` [PATCH v2 2/2] 9pfs: fix FD leak and reduce latency of v9fs_reclaim_fd() Christian Schoenebeck
2025-03-07  9:47   ` Christian Schoenebeck
2025-03-10  9:57     ` Greg Kurz
2025-03-10  9:54   ` Greg Kurz
2025-03-18 19:00 ` [PATCH v2 0/2] 9pfs: v9fs_reclaim_fd() fixes Christian Schoenebeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).