summaryrefslogtreecommitdiff
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2016-10-06 14:09:16 -0700
committerShaohua Li <shli@fb.com>2016-10-24 15:28:17 -0700
commite3f948cd3283e4fbe5907f1f3967c839912f480e (patch)
treef27499748322b39719a5b3b81a3867675ca74f1e /drivers/md/raid10.c
parent07d9a380680d1c0eb51ef87ff2eab5c994949e69 (diff)
RAID1: ignore discard error
If a write error occurs, raid1 will try to rewrite the bio in small chunk size. If the rewrite fails, raid1 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. Reported-and-tested-by: Sitsofe Wheeler <sitsofe@gmail.com> Cc: stable@vger.kernel.org (v3.6) Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid10.c')
0 files changed, 0 insertions, 0 deletions