From: Nithurshen <nithurshen.dev@gmail.com>
To: linux-erofs@lists.ozlabs.org
Cc: hsiangkao@linux.alibaba.com, xiang@kernel.org,
Nithurshen <nithurshen.dev@gmail.com>
Subject: [PATCH 0/2] fsck.erofs: implement multi-threaded extraction
Date: Sun, 21 Jun 2026 17:31:19 +0530 [thread overview]
Message-ID: <20260621120121.73114-1-nithurshen.dev@gmail.com> (raw)
Hi Xiang,
This series introduces multi-threaded decompression and extraction to
fsck.erofs.
The architecture is divided into two decoupled workqueues to prevent
thread pool exhaustion gridlock:
1. `erofs_traverse_wq`: Handles the asynchronous directory walk. It
localizes the historically global `extract_path` and `dirstack`
states into individual payloads, safely traversing the tree and
verifying inodes.
2. `erofs_wq`: Dedicated strictly to processing `z_erofs_decompress_req`
payloads. Decompression tasks take strict ownership of the raw and
output buffers, preventing data races.
Testing on heavily packed LZ4HC images demonstrates smooth asynchronous
fan-out, successfully overlapping I/O traversal with decompression
compute.
Nithurshen (2):
fsck.erofs: add multi-threaded decompression
fsck.erofs: implement concurrent directory traversal
fsck/main.c | 450 ++++++++++++++++++++++++---------------
include/erofs/cond.h | 31 +++
include/erofs/internal.h | 20 +-
include/erofs/lock.h | 3 +
lib/data.c | 216 ++++++++++++++-----
5 files changed, 488 insertions(+), 232 deletions(-)
create mode 100644 include/erofs/cond.h
--
2.52.0
next reply other threads:[~2026-06-21 12:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-21 12:01 Nithurshen [this message]
2026-06-21 12:01 ` [PATCH 1/2] fsck.erofs: add multi-threaded decompression Nithurshen
2026-06-21 12:01 ` [PATCH 2/2] fsck.erofs: implement concurrent directory traversal Nithurshen
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=20260621120121.73114-1-nithurshen.dev@gmail.com \
--to=nithurshen.dev@gmail.com \
--cc=hsiangkao@linux.alibaba.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=xiang@kernel.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.