All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Schoenebeck <qemu_oss@crudebyte.com>
To: qemu-devel@nongnu.org
Cc: Greg Kurz <groug@kaod.org>, qemu-stable@nongnu.org
Subject: [PATCH v2 0/2] 9pfs: v9fs_reclaim_fd() fixes
Date: Fri, 7 Mar 2025 10:24:12 +0100	[thread overview]
Message-ID: <cover.1741339452.git.qemu_oss@crudebyte.com> (raw)

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



             reply	other threads:[~2025-03-07  9:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-07  9:24 Christian Schoenebeck [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1741339452.git.qemu_oss@crudebyte.com \
    --to=qemu_oss@crudebyte.com \
    --cc=groug@kaod.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.