diff options
author | Guoqing Jiang <jgq516@gmail.com> | 2021-05-25 17:46:19 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2021-06-14 22:32:06 -0700 |
commit | 1147f58e1010b8688bac1fd3bbab753b1379291d (patch) | |
tree | c02f11558f5b2e580889d32a41556a41eb41d161 /include/linux/compiler_attributes.h | |
parent | c82aa1b76787c34fd02374e519b6f52cdeb2f54b (diff) |
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: Guoqing Jiang <jiangguoqing@kylinos.cn>
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions