Re: [PATCH] Btrfs: skip checksum verification if IO error occurs

2017-06-06 Thread David Sterba
On Thu, Apr 13, 2017 at 06:11:48PM -0700, Liu Bo wrote: > Currently dio read also goes to verify checksum if -EIO has been returned, > although it usually fails on checksum, it's not necessary at all, we could > directly check if there is another copy to read. > > And with this, the behavior of di

[PATCH] Btrfs: skip checksum verification if IO error occurs

2017-04-13 Thread Liu Bo
Currently dio read also goes to verify checksum if -EIO has been returned, although it usually fails on checksum, it's not necessary at all, we could directly check if there is another copy to read. And with this, the behavior of dio read is now consistent with that of buffered read. Signed-off-b