From: Gao Xiang <xiang@kernel.org>
To: Bingwu Zhang <xtex@envs.net>
Cc: Gao Xiang <xiang@kernel.org>, Chao Yu <chao@kernel.org>,
Yue Hu <zbestahu@gmail.com>,
Jeffle Xu <jefflexu@linux.alibaba.com>,
Sandeep Dhavale <dhavale@google.com>,
Hongbo Li <hongbohbli@tencent.com>,
Chunhai Guo <guochunhai@vivo.com>,
linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org,
Bingwu Zhang <xtex@astrafall.org>
Subject: Re: [PATCH] erofs: remove erofs_dev_context->rwsem
Date: Sun, 16 Aug 2026 11:06:05 +0800 [thread overview]
Message-ID: <aoEpHV2r6ye_Ff3c@XiangdeMacBook-Pro.local> (raw)
In-Reply-To: <20260816-erofs-remove-rwsem-v1-1-78b60b855fa6@astrafall.org>
Hi Bingwu,
On Sun, Aug 16, 2026 at 10:00:12AM +0800, Bingwu Zhang wrote:
> From: Bingwu Zhang <xtex@astrafall.org>
>
> devs->tree is only modified in initialization and
> destruction code paths and will never be concurrent
> with data reading. Thus there is no need to guard
> idr_alloc/idr_find with a rwsem.
Thanks for the patch.
In principle, yes, but it's also no problem to leave it as-is in case
some use cases later need adjust the device_info of a dev for example
at runtime.
Or if it causes any noticeable performance penalty, that will be one
reason to drop it now.
Thanks,
Gao Xiang
>
> Signed-off-by: Bingwu Zhang <xtex@astrafall.org>
next prev parent reply other threads:[~2026-08-16 3:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-16 2:00 Bingwu Zhang
2026-08-16 3:06 ` Gao Xiang [this message]
2026-08-16 3:11 ` xtex
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=aoEpHV2r6ye_Ff3c@XiangdeMacBook-Pro.local \
--to=xiang@kernel.org \
--cc=chao@kernel.org \
--cc=dhavale@google.com \
--cc=guochunhai@vivo.com \
--cc=hongbohbli@tencent.com \
--cc=jefflexu@linux.alibaba.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xtex@astrafall.org \
--cc=xtex@envs.net \
--cc=zbestahu@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®