Re: [PATCH v2] md: skip redundant raid_disks update when value is unchanged

From: Yu Kuai

Date: Wed May 20 2026 - 08:46:06 EST


在 2026/4/28 21:05, Abd-Alrhman Masalkhi 写道:

> Calling update_raid_disks() with the same value as the current one
> can trigger unnecessary work. For example, RAID1 will reallocate
> resources such as the mempool for r1bio.
>
> Signed-off-by: Abd-Alrhman Masalkhi<abd.masalkhi@xxxxxxxxx>
> ---
> drivers/md/md.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
Applied to md-7.2

--
Thansk,
Kuai