mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
md: merge mddev serialize_policy into mddev_flags
There is not need to use a separate field in struct mddev, there are no functional changes. Link: https://lore.kernel.org/linux-raid/20260114171241.3043364-5-yukuai@fnnas.com Signed-off-by: Yu Kuai <yukuai@fnnas.com> Reviewed-by: Li Nan <linan122@huawei.com>
This commit is contained in:
@@ -542,7 +542,7 @@ static void raid1_end_write_request(struct bio *bio)
|
||||
call_bio_endio(r1_bio);
|
||||
}
|
||||
}
|
||||
} else if (rdev->mddev->serialize_policy)
|
||||
} else if (test_bit(MD_SERIALIZE_POLICY, &rdev->mddev->flags))
|
||||
remove_serial(rdev, lo, hi);
|
||||
if (r1_bio->bios[mirror] == NULL)
|
||||
rdev_dec_pending(rdev, conf->mddev);
|
||||
@@ -1644,7 +1644,7 @@ static void raid1_write_request(struct mddev *mddev, struct bio *bio,
|
||||
mbio = bio_alloc_clone(rdev->bdev, bio, GFP_NOIO,
|
||||
&mddev->bio_set);
|
||||
|
||||
if (mddev->serialize_policy)
|
||||
if (test_bit(MD_SERIALIZE_POLICY, &mddev->flags))
|
||||
wait_for_serialization(rdev, r1_bio);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user