]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MD: ignore discard request for hard disks of hybid raid1/raid10 array
authorShaohua Li <shli@kernel.org>
Sun, 28 Apr 2013 10:26:38 +0000 (18:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:08:23 +0000 (20:08 -0700)
commit70167a15d829277ed1373973b9535c20025c772a
tree96f62076ece29aa74f55b6695580a2f437c5e868
parent9088a4100a97838270b44a7980ccbc822b17a85b
MD: ignore discard request for hard disks of hybid raid1/raid10 array

commit 32f9f570d04461a41bdcd5c1d93b41ebc5ce182a upstream.

In SSD/hard disk hybid storage, discard request should be ignored for hard
disk. We used to be doing this way, but the unplug path forgets it.

This is suitable for stable tree since v3.6.

Reported-and-tested-by: Markus <M4rkusXXL@web.de>
Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/raid1.c
drivers/md/raid10.c