]> git.karo-electronics.de Git - karo-tx-linux.git/commit
raid5: avoid finding "discard" stripe
authorShaohua Li <shli@kernel.org>
Sat, 19 Oct 2013 06:51:42 +0000 (14:51 +0800)
committerNeilBrown <neilb@suse.de>
Thu, 24 Oct 2013 02:00:24 +0000 (13:00 +1100)
commitd47648fcf0611812286f68131b40251c6fa54f5e
tree913370efae899bbcfda8364d569d1e74f392eb88
parent37c61ff31e9b5e3fcf3cc6579f5c68f6ad40c4b1
raid5: avoid finding "discard" stripe

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+.

Cc: <stable@vger.kernel.org> (3.7+)
Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c