Btrfs: fix wrong failed mirror_num of read-repair on raid56
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 29 Mar 2017 17:54:26 +0000 (10:54 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:26 +0000 (14:07 +0200)
commitabad60c6013d62f4ddd19667260e2e4a957a9c2a
treec4cdc9d387371330e527f0db022778c5d0aad539
parent1bcd7aa17fc1fa29009feec3e0ac4230d0d9f700
Btrfs: fix wrong failed mirror_num of read-repair on raid56

In raid56 scenario, after trying parity recovery, we didn't set
mirror_num for btrfs_bio with failed mirror_num, hence
end_bio_extent_readpage() will report a random mirror_num in dmesg
log.

Cc: David Sterba <dsterba@suse.cz>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c