md/raid1-10: factor out a helper to submit normal write
authorYu Kuai <yukuai3@huawei.com>
Mon, 29 May 2023 13:11:02 +0000 (21:11 +0800)
committerSong Liu <song@kernel.org>
Tue, 13 Jun 2023 22:25:43 +0000 (15:25 -0700)
commit8295efbe68c080047e98d9c0eb5cb933b238a8cb
tree7442096e03bf560b894e7373e8cd04cd8136d98f
parent5ec6ca140a034682e421e2e808ef5ddfdfd65242
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
drivers/md/raid1-10.c
drivers/md/raid1.c
drivers/md/raid10.c