raid5: avoid finding "discard" stripe
authorShaohua Li <shli@kernel.org>
Sat, 19 Oct 2013 06:51:42 +0000 (14:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2013 03:05:31 +0000 (12:05 +0900)
commit01e608d7276508fcafb76f2092db89885e62ef66
tree150dd95f42dfdc7e34db77cb50513ea5b7f26edb
parent7e44a92662ce582268c4f35e68aad1f632ada8f8
raid5: avoid finding "discard" stripe

commit d47648fcf0611812286f68131b40251c6fa54f5e upstream.

SCSI discard will damage discard stripe bio setting, eg, some fields are
changed. If the stripe is reused very soon, we have wrong bios setting. We
remove discard stripe from hash list, so next time the strip will be fully
initialized.

Suitable for backport to 3.7+.

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/raid5.c