• S
    RAID1: ignore discard error · e3f948cd
    Shaohua Li 提交于
    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: NSitsofe Wheeler <sitsofe@gmail.com>
    Cc: stable@vger.kernel.org (v3.6)
    Signed-off-by: NShaohua Li <shli@fb.com>
    e3f948cd
raid1.c 87.0 KB