Skip to content
Commit c069da44 authored by Xueshi Hu's avatar Xueshi Hu Committed by Song Liu
Browse files

md/raid1: hold the barrier until handle_read_error() finishes

handle_read_error() will call allow_barrier() to match the former barrier
raising. However, it should put the allow_barrier() at the end to avoid a
concurrent raid reshape.

Fixes: 689389a0

 ("md/raid1: simplify handle_read_error().")
Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarXueshi Hu <xueshi.hu@smartx.com>
Link: https://lore.kernel.org/r/20230814135356.1113639-4-xueshi.hu@smartx.com
Signed-off-by: default avatarSong Liu <song@kernel.org>
parent 992db13a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment