]> git.karo-electronics.de Git - karo-tx-linux.git/commit
RAID10: ignore discard error
authorShaohua Li <shli@fb.com>
Thu, 6 Oct 2016 21:13:52 +0000 (14:13 -0700)
committerShaohua Li <shli@fb.com>
Mon, 24 Oct 2016 22:28:17 +0000 (15:28 -0700)
commit579ed34f7b751b8add233cba4cf755258dbdd60a
tree455b3afa213f757a34a8c325c070498143e06ce5
parente3f948cd3283e4fbe5907f1f3967c839912f480e
RAID10: ignore discard error

This is the counterpart of raid10 fix. If a write error occurs, raid10
will try to rewrite the bio in small chunk size. If the rewrite fails,
raid10 will record the error in bad block. narrow_write_error will
always use WRITE for the bio, but actually it could be a discard. Since
discard bio hasn't payload, write the bio will cause different issues.
But discard error isn't fatal, we can safely ignore it. This is what
this patch does.

This issue should exist since discard is added, but only exposed with
recent arbitrary bio size feature.

Cc: Sitsofe Wheeler <sitsofe@gmail.com>
Cc: stable@vger.kernel.org (v3.6)
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid10.c