Revert "md/raid10: improve discard request for far layout"
authorSong Liu <songliubraving@fb.com>
Wed, 9 Dec 2020 19:38:11 +0000 (11:38 -0800)
committerSong Liu <songliubraving@fb.com>
Thu, 10 Dec 2020 04:46:00 +0000 (20:46 -0800)
commit82fe9af77cd11ea7bdc133ceed1f7f5fc08f7d25
tree89ef11ea3a1bc8ea2ea14dc0a4a7a42d98b953de
parente2782f560c298efc2e23c7e54b3acf54e8a6ba72
Revert "md/raid10: improve discard request for far layout"

This reverts commit d3ee2d8415a6256c1c41e1be36e80e640c3e6359.

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
drivers/md/raid10.h