mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
md/md-bitmap: handle the case bitmap is not enabled before end_sync()
This case can be handled without knowing internal implementation. Prepare to introduce CONFIG_MD_BITMAP. Link: https://lore.kernel.org/linux-raid/20250707012711.376844-9-yukuai1@huaweicloud.com Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Xiao Ni <xni@redhat.com>
This commit is contained in:
@@ -6492,8 +6492,8 @@ static inline sector_t raid5_sync_request(struct mddev *mddev, sector_t sector_n
|
||||
}
|
||||
|
||||
if (mddev->curr_resync < max_sector) /* aborted */
|
||||
mddev->bitmap_ops->end_sync(mddev, mddev->curr_resync,
|
||||
&sync_blocks);
|
||||
md_bitmap_end_sync(mddev, mddev->curr_resync,
|
||||
&sync_blocks);
|
||||
else /* completed sync */
|
||||
conf->fullsync = 0;
|
||||
mddev->bitmap_ops->close_sync(mddev);
|
||||
|
||||
Reference in New Issue
Block a user