]> git.hungrycats.org Git - linux/commit
md/raid0: Factor out helper for mapping and submitting a bio
authorJan Kara <jack@suse.cz>
Mon, 14 Aug 2023 09:27:07 +0000 (11:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:19 +0000 (09:48 +0200)
commitaf006dbb3802bf341be4cddeacc46b24990eca52
treed05b581c7d198b13e3b31427cfc2ebc1e1c04629
parente39ef7880d1057b2ebcdb013405f4d84a257db23
md/raid0: Factor out helper for mapping and submitting a bio

[ Upstream commit af50e20afb401cc203bd2a9ff62ece0ae4976103 ]

Factor out helper function for mapping and submitting a bio out of
raid0_make_request(). We will use it later for submitting both parts of
a split bio.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20230814092720.3931-1-jack@suse.cz
Signed-off-by: Song Liu <song@kernel.org>
Stable-dep-of: 319ff40a5427 ("md/raid0: Fix performance regression for large sequential writes")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/raid0.c