Skip to content
Commit 1147f58e authored by Guoqing Jiang's avatar Guoqing Jiang Committed by Song Liu
Browse files

md/raid5: avoid redundant bio clone in raid5_read_one_chunk



After enable io accounting, chunk read bio could be cloned twice which
is not good. To avoid such inefficiency, let's clone align_bio from
io_acct_set too, then we need only call md_account_bio in make_request
unconditionally.

Signed-off-by: default avatarGuoqing Jiang <jiangguoqing@kylinos.cn>
Signed-off-by: default avatarSong Liu <song@kernel.org>
parent c82aa1b7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment