From: Gao Xiang <xiang@kernel.org>
To: Zhiguo Niu <zhiguo.niu@unisoc.com>
Cc: xiang@kernel.org, chao@kernel.org, niuzhiguo84@gmail.com,
ke.wang@unisoc.com, zbestahu@gmail.com, jefflexu@163.com,
dhavale@google.com, hongbohbli@tencent.com, guochunhai@vivo.com,
linux-erofs@lists.ozlabs.org
Subject: Re: [PATCH v2] erofs: print error code in erofs_err() of erofs_readdir
Date: Tue, 1 Dec 2026 06:54:25 +0100 [thread overview]
Message-ID: <aw5hEaO0KfWCLBc7@MacBookPro.fritz.box> (raw)
In-Reply-To: <20261201015307.1883761-1-zhiguo.niu@unisoc.com>
On Tue, Dec 01, 2026 at 09:53:07AM +0800, Zhiguo Niu wrote:
> Under system stress tests, the following log frequently shows up:
> erofs: (device dm-8): erofs_readdir: failed to readdir of logical
> block 0 of nid 124
>
> Without the err value, it is hard to tell whether the failure was
> caused by an interrupted read (e.g. -EINTR) or a real I/O problem.
> Print the error code so that we can get more clues to the problem.
>
> Also fix the similar codes in other erofs_err() call sites where a
> real error code is available but not printed:
> - erofs_read_superblock: "cannot read erofs superblock"
> - z_erofs_init_pcpu_workers: per-cpu workers allocation and CPU
> hotplug init
> - z_erofs_readahead: "readahead error at folio ... @ nid ..."
>
> Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: Gao Xiang <xiang@kernel.org>
Thanks,
Gao Xiang
prev parent reply other threads:[~2026-12-01 5:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 1:53 [PATCH v2] erofs: print error code in erofs_err() of erofs_readdir Zhiguo Niu
2026-12-01 5:54 ` Gao Xiang [this message]
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=aw5hEaO0KfWCLBc7@MacBookPro.fritz.box \
--to=xiang@kernel.org \
--cc=chao@kernel.org \
--cc=dhavale@google.com \
--cc=guochunhai@vivo.com \
--cc=hongbohbli@tencent.com \
--cc=jefflexu@163.com \
--cc=ke.wang@unisoc.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=niuzhiguo84@gmail.com \
--cc=zbestahu@gmail.com \
--cc=zhiguo.niu@unisoc.com \
/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.