Re: [PATCH v3 08/13] md: remove MD_RECOVERY_ERROR handling and simplify resync_offset update

From: Yu Kuai
Date: Sat Jan 03 2026 - 05:36:32 EST


在 2025/12/15 11:04, linan666@xxxxxxxxxxxxxxx 写道:

> From: Li Nan<linan122@xxxxxxxxxx>
>
> Following previous patch "md: update curr_resync_completed even when
> MD_RECOVERY_INTR is set", 'curr_resync_completed' always equals
> 'curr_resync' for resync, so MD_RECOVERY_ERROR can be removed.
>
> Also, simplify resync_offset update logic.
>
> Signed-off-by: Li Nan<linan122@xxxxxxxxxx>
> ---
> drivers/md/md.h | 2 --
> drivers/md/md.c | 21 ++++-----------------
> 2 files changed, 4 insertions(+), 19 deletions(-)

Reviewed-by: Yu Kuai<yukuai@xxxxxxxxx>

--
Thansk,
Kuai