md/md-bitmap: add a new method blocks_synced() in bitmap_operations
authorYu Kuai <yukuai3@huawei.com>
Fri, 29 Aug 2025 08:04:23 +0000 (16:04 +0800)
committerYu Kuai <yukuai3@huawei.com>
Sat, 6 Sep 2025 09:20:01 +0000 (17:20 +0800)
commita4dd9ba39ba4f86ae8848c63945d443f0569efb1
treea45ddbcfab842577c30fe9e9ad4acd516b243fe4
parentf196d72888640e35002ac3511757cefaa9c5e339
md/md-bitmap: add a new method blocks_synced() in bitmap_operations

Currently, raid456 must perform a whole array initial recovery to build
initail xor data, then IO to the array won't have to read all the blocks
in underlying disks.

This behavior will affect IO performance a lot, and nowadays there are
huge disks and the initial recovery can take a long time. Hence llbitmap
will support lazy initial recovery in following patches. This method is
used to check if data blocks is synced or not, if not then IO will still
have to read all blocks for raid456.

Link: https://lore.kernel.org/linux-raid/20250829080426.1441678-9-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
drivers/md/md-bitmap.h
drivers/md/raid5.c