Re: [PATCH 1/2] btrfs: submit a normal bio for the mirror read

2017-11-29 Thread Liu Bo
On Wed, Nov 29, 2017 at 03:11:14PM +0800, Anand Jain wrote: > When the fist mirror failed to read we submit bio again to read from the > 2nd mirror, however during this, we also set the flag REQ_FAILFAST_DEV > which indicates to the underlying block device driver not to perform the > default IO

[PATCH 1/2] btrfs: submit a normal bio for the mirror read

2017-11-28 Thread Anand Jain
When the fist mirror failed to read we submit bio again to read from the 2nd mirror, however during this, we also set the flag REQ_FAILFAST_DEV which indicates to the underlying block device driver not to perform the default IO retry (sd, 5 counts), and thus command will be failed and returned at