diff options
| author | Guoqing Jiang <jgq516@gmail.com> | 2019-07-24 11:09:21 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-05 12:27:47 +0200 |
| commit | 6809adb82cea49a131ee6de36c45950b11821dc5 (patch) | |
| tree | 7266fb62d6ef55e295ebd60ce7cc0bd2b995f041 /include/uapi/linux/msg.h | |
| parent | 41330a743f732efd431b00244479cd83ca747486 (diff) | |
md: don't call spare_active in md_reap_sync_thread if all member devices can't work
[ Upstream commit 0d8ed0e9bf9643f27f4816dca61081784dedb38d ]
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 <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/uapi/linux/msg.h')
0 files changed, 0 insertions, 0 deletions
