OSDN Git Service

Revert "md: add md_submit_discard_bio() for submitting discard bio"
authorSong Liu <songliubraving@fb.com>
Wed, 9 Dec 2020 19:44:42 +0000 (11:44 -0800)
committerSong Liu <songliubraving@fb.com>
Thu, 10 Dec 2020 04:46:01 +0000 (20:46 -0800)
commit57a0f3a81ef21fe51d6223aa78a1a890098d4ada
tree50aa998b4c268af70691699bf8fed1c4e2168670
parent17c28c2a068730e9d065a0e4ed03beed074d8997
Revert "md: add md_submit_discard_bio() for submitting discard bio"

This reverts commit 2628089b74d5a64bd0bcb5d247a18f78d7b6f4d0.

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