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)
committerNeilBrown <neilb@suse.de>
Tue, 30 Apr 2013 04:49:36 +0000 (14:49 +1000)
commit32f9f570d04461a41bdcd5c1d93b41ebc5ce182a
tree82fe7220a3d3ea346ad372f2c14bc590cf7ccb82
parent486adf72ccc0c235754923d47a2270c5dcb0c98b
MD: ignore discard request for hard disks of hybid raid1/raid10 array

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.

Cc: stable@vger.kernel.org
Reported-and-tested-by: Markus <M4rkusXXL@web.de>
Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c
drivers/md/raid10.c