Skip to content
Snippets Groups Projects
Commit 605eeda6 authored by Li Nan's avatar Li Nan Committed by Song Liu
Browse files

md/raid10: optimize fix_read_error


We dereference r10_bio->read_slot too many times in fix_read_error().
Optimize it by using a variable to store read_slot.

Signed-off-by: default avatarLi Nan <linan122@huawei.com>
Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20230623173236.2513554-2-linan666@huaweicloud.com


Signed-off-by: default avatarSong Liu <song@kernel.org>
parent ffb1e7a0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment