Re: [PATCH v5 01/16] md: move device_lock from conf to mddev

From: Yu Kuai

Date: Wed Oct 29 2025 - 21:59:38 EST


在 2025/10/27 23:04, Kenta Akagi 写道:

> Move device_lock from mddev->private (r1conf, r10conf, r5conf)
> to the mddev structure in preparation for serializing md_error() and
> introducing new function that conditional md_error() calls to
> improvement failfast bio error handling.
>
> This commit only moves the device_lock location with no functional
> changes. Subsequent commits will serialize md_error() and introduce
> a new function that calls md_error() conditionally.
>
> Signed-off-by: Kenta Akagi<k@xxxxxxx>
> ---
> drivers/md/md.c | 1 +
> drivers/md/md.h | 2 +
> drivers/md/raid1.c | 51 +++++++-------
> drivers/md/raid1.h | 2 -
> drivers/md/raid10.c | 61 +++++++++--------
> drivers/md/raid10.h | 1 -
> drivers/md/raid5-cache.c | 16 ++---
> drivers/md/raid5.c | 139 +++++++++++++++++++--------------------
> drivers/md/raid5.h | 1 -
> 9 files changed, 135 insertions(+), 139 deletions(-)

Reviewed-by: Yu Kuai <yukuai@xxxxxxxxx>