aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi
diff options
context:
space:
mode:
authorLiu Bo <[email protected]>2017-09-20 17:50:19 -0600
committerDavid Sterba <[email protected]>2017-09-26 14:53:26 +0200
commite6311f240c946788131ba2b97e14f37312688072 (patch)
treefdd78165cfdd0d426f7c0b86b28e910716d88821 /lib/mpi
parentcf1167d5c1abf3bc42b2a1562bfa7937c05337e2 (diff)
Btrfs: skip checksum when reading compressed data if some IO have failed
Currently even if the underlying disk reports failure on IO, compressed read endio still gets to verify checksum and reports it as a checksum error. In fact, if some IO have failed during reading a compressed data extent , there's no way the checksum could match, therefore, we can skip that in order to return error quickly to the upper layer. Please note that we need to do this after recording the failed mirror index so that read-repair in the upper layer's endio can work properly. Signed-off-by: Liu Bo <[email protected]> Tested-by: Paul Jones <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions