md/raid1-10: factor out a helper to submit normal write

There are multiple places to do the same thing, factor out a helper to
prevent redundant code, and the helper will be used in following patch
as well.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230529131106.2123367-4-yukuai1@huaweicloud.com
This commit is contained in:
Yu Kuai 2023-05-29 21:11:02 +08:00 • committed by Song Liu
commit 8295efbe68
3 changed files with 23 additions and 33 deletions