]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm/Grow: sleep a while after removing disk in impose_level
authorXiao Ni <xni@redhat.com>
Wed, 11 Sep 2024 08:54:26 +0000 (16:54 +0800)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 23 Sep 2024 08:48:42 +0000 (10:48 +0200)
commit166e5e2fc4b634df100ccc0010035f925bb2ad63
treeb088711423ee73903036dba7fd2fb6cfa61f69c5
parentcd94b9adf7d53457d86cdc39b983b18713f24032
mdadm/Grow: sleep a while after removing disk in impose_level

It needs to remove disks when reshaping from raid456 to raid0. In
kernel space it sets MD_RECOVERY_RUNNING. And it will fail to change
level. So wait sometime to let md thread to clear this flag.

This is found by test case 05r6tor0.

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Grow.c