diff options
| author | Guoqing Jiang <[email protected]> | 2019-07-24 11:09:21 +0200 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2019-08-07 10:25:02 -0700 |
| commit | 0d8ed0e9bf9643f27f4816dca61081784dedb38d (patch) | |
| tree | 21a6c537153637403299b285e78dc917e3948002 /tools/perf/scripts/python/sctop.py | |
| parent | 062f5b2ae12a153644c765e7ba3b0f825427be1d (diff) | |
md: don't call spare_active in md_reap_sync_thread if all member devices can't work
When add one disk to array, the md_reap_sync_thread is responsible
to activate the spare and set In_sync flag for the new member in
spare_active().
But if raid1 has one member disk A, and disk B is added to the array.
Then we offline A before all the datas are synchronized from A to B,
obviously B doesn't have the latest data as A, but B is still marked
with In_sync flag.
So let's not call spare_active under the condition, otherwise B is
still showed with 'U' state which is not correct.
Signed-off-by: Guoqing Jiang <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions