diff options
author | Li Nan <linan122@huawei.com> | 2023-05-27 15:22:16 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-06-13 15:25:42 -0700 |
commit | 59f8f0b54c8ffb4521f6bbd1cb6f4dfa5022e75e (patch) | |
tree | e307b5e5bf5d2d7fdc802c51d2249be992c02c00 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 34817a2441747b48e444cb0e05d84e14bc9443da (diff) |
md/raid10: improve code of mrdev in raid10_sync_request
'need_recover' and 'mrdev' are equivalent in raid10_sync_request(), and
inc mrdev->nr_pending is unreasonable if don't need recovery. Replace
'need_recover' with 'mrdev', and only inc nr_pending when needed.
Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230527072218.2365857-3-linan666@huaweicloud.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions