At 06/06/2016 04:21 PM, David Sterba wrote:
On Tue, Dec 15, 2015 at 07:09:48PM +0800, Zhao Lei wrote:
__btrfs_map_block() should return all mirror on WRITE,
REQ_GET_READ_MIRRORS, and RECOVERY case, whether need_raid_map set
or not.
need_raid_map only used to control is to set bbio->raid_map.
On Tue, Dec 15, 2015 at 07:09:48PM +0800, Zhao Lei wrote:
> __btrfs_map_block() should return all mirror on WRITE,
> REQ_GET_READ_MIRRORS, and RECOVERY case, whether need_raid_map set
> or not.
>
> need_raid_map only used to control is to set bbio->raid_map.
>
> Current code works right becuase
__btrfs_map_block() should return all mirror on WRITE,
REQ_GET_READ_MIRRORS, and RECOVERY case, whether need_raid_map set
or not.
need_raid_map only used to control is to set bbio->raid_map.
Current code works right becuase there is only one caller can
trigger above bug, which is readahead, and