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

md/raid1: call free_r1bio() before allow_barrier() in raid_end_bio_io()



After allow_barrier, a concurrent raid1_reshape() will replace old mempool
and r1conf::raid_disks. Move allow_barrier() to the end of raid_end_bio_io(),
so that r1bio can be freed safely.

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-2-xueshi.hu@smartx.com
Signed-off-by: default avatarSong Liu <song@kernel.org>
parent ec14a87e
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