md/raid1: factor out the code to manage sequential IO
authorYu Kuai <yukuai3@huawei.com>
Thu, 29 Feb 2024 09:57:13 +0000 (17:57 +0800)
committerSong Liu <song@kernel.org>
Fri, 1 Mar 2024 06:49:46 +0000 (22:49 -0800)
commitba58f57fdf98af642c57654599823640ffe8334c
tree01aa20709b7294f55595c003956086cf89d2ac33
parent9f3ced792203891b8fa39afa37908eba843fcfac
md/raid1: factor out the code to manage sequential IO

There is no functional change for now, make read_balance() cleaner and
prepare to fix problems and refactor the handler of sequential IO.

Co-developed-by: Paul Luse <paul.e.luse@linux.intel.com>
Signed-off-by: Paul Luse <paul.e.luse@linux.intel.com>
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240229095714.926789-11-yukuai1@huaweicloud.com
drivers/md/raid1.c