From: Wang Jinchao <wangjinchao600@gmail.com>
To: Song Liu <song@kernel.org>, Yu Kuai <yukuai3@huawei.com>
Cc: Wang Jinchao <wangjinchao600@gmail.com>,
linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/2] Optimize r1conf->r1bio_pool
Date: Tue, 24 Jun 2025 09:55:51 +0800 [thread overview]
Message-ID: <20250624015604.70309-1-wangjinchao600@gmail.com> (raw)
The r1conf->r1bio_pool field was previously a struct,
which caused a bug after raid1_reshape.
These patch changes it to a pointer type
and removes struct pool_info and related code.
Wang Jinchao (2):
md/raid1: change r1conf->r1bio_pool to a pointer type
md/raid1: remove struct pool_info and related code
drivers/md/raid1.c | 84 +++++++++++++++++-----------------------------
drivers/md/raid1.h | 22 +-----------
2 files changed, 31 insertions(+), 75 deletions(-)
--
v1: Replace mempool_init() with mempool_create()
v2: Replace mempool_init() with mempool_create_kmalloc_pool()
v3: Fix checkpatch errors and a bug in calculating new_r1bio_size
The idea was proposed by Kuai, and I implemented it.
Thanks for the guidance and review.
--
2.43.0
next reply other threads:[~2025-06-24 1:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-24 1:55 Wang Jinchao [this message]
2025-06-24 1:55 ` [PATCH v3 1/2] md/raid1: change r1conf->r1bio_pool to a pointer type Wang Jinchao
2025-06-24 1:55 ` [PATCH v3 2/2] md/raid1: remove struct pool_info and related code Wang Jinchao
2025-06-28 3:18 ` Yu Kuai
2025-06-28 3:17 ` [PATCH v3 1/2] md/raid1: change r1conf->r1bio_pool to a pointer type Yu Kuai
2025-06-30 3:49 ` Wang Jinchao
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=20250624015604.70309-1-wangjinchao600@gmail.com \
--to=wangjinchao600@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=song@kernel.org \
--cc=yukuai3@huawei.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;
as well as URLs for NNTP newsgroup(s).