md: pass in max_sectors for pers->sync_request()
For different sync_action, sync_thread will use different max_sectors, see details in md_sync_max_sectors(), currently both md_do_sync() and pers->sync_request() in eatch iteration have to get the same max_sectors. Hence pass in max_sectors for pers->sync_request() to prevent redundant code. Signed-off-by:Yu Kuai <yukuai3@huawei.com> Signed-off-by:
Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20240611132251.1967786-12-yukuai1@huaweicloud.com
Showing
- drivers/md/md.c 3 additions, 2 deletionsdrivers/md/md.c
- drivers/md/md.h 2 additions, 1 deletiondrivers/md/md.h
- drivers/md/raid1.c 2 additions, 3 deletionsdrivers/md/raid1.c
- drivers/md/raid10.c 2 additions, 6 deletionsdrivers/md/raid10.c
- drivers/md/raid5.c 1 addition, 2 deletionsdrivers/md/raid5.c
Please register or sign in to comment