dm raid: fix nosync status
authorHeinz Mauelshagen <heinzm@redhat.com>
Fri, 16 Mar 2018 22:01:59 +0000 (23:01 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Apr 2018 19:04:19 +0000 (15:04 -0400)
commit880bcce0dcc3172fe865352b492c41d85290cb8d
treecc6e49e5a67ac7abaef250f6fd1284bdc01e5177
parent8192a0cd7648f222d8ba73f302df0f03f07d5c4f
dm raid: fix nosync status

Fix a race for "nosync" activations providing "aa.." device health
characters and "0/N" sync ratio rather than "AA..." and "N/N".  Occurs
when status for the raid set is retrieved during resume before the MD
sync thread starts and clears the MD_RECOVERY_NEEDED flag.

Cc: stable@vger.kernel.org # 4.16+
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c