diff options
author | Li Nan <[email protected]> | 2023-05-27 15:22:16 +0800 |
---|---|---|
committer | Song Liu <[email protected]> | 2023-06-13 15:25:42 -0700 |
commit | 59f8f0b54c8ffb4521f6bbd1cb6f4dfa5022e75e (patch) | |
tree | e307b5e5bf5d2d7fdc802c51d2249be992c02c00 /drivers/platform/surface/aggregator/ssh_parser.c | |
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 <[email protected]>
Reviewed-by: Yu Kuai <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions