Revert "md/raid10: pull codes that wait for blocked dev into one function"
authorSong Liu <songliubraving@fb.com>
Wed, 9 Dec 2020 19:43:43 +0000 (11:43 -0800)
committerSong Liu <songliubraving@fb.com>
Thu, 10 Dec 2020 04:46:01 +0000 (20:46 -0800)
commit4e2c6567efdd6f252e1874c41c8db4abfb0a9bf3
tree8426c100618b2f1eb017b1d96f6c66122b9e1f4f
parentd7cb6be0d0cdced2a7a96bd80a8f835e77ec5204
Revert "md/raid10: pull codes that wait for blocked dev into one function"

This reverts commit f046f5d0d79cdb968f219ce249e497fd1accf484.

Matthew Ruffell reported data corruption in raid10 due to the changes
in discard handling [1]. Revert these changes before we find a proper fix.

[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1907262/
Cc: Matthew Ruffell <matthew.ruffell@canonical.com>
Cc: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid10.c