On Thu, Jun 06, 2019 at 04:54:44PM +0900, Naohiro Aota wrote: > Currently, btrfs does not consult seed devices to start readahead. As a > result, if readahead zone is added to the seed devices, btrfs_reada_wait() > indefinitely wait for the reada_ctl to finish. > > You can reproduce the hung by modifying btrfs/163 to have larger initial > file size (e.g. xfs_io pwrite 4M instead of current 256K). > > Fixes: 7414a03fbf9e ("btrfs: initial readahead code and prototypes") > Cc: stable@xxxxxxxxxxxxxxx # 3.2+: ce7791ffee1e: Btrfs: fix race between readahead and device replace/removal > Cc: stable@xxxxxxxxxxxxxxx # 3.2+ > Signed-off-by: Naohiro Aota <naohiro.aota@xxxxxxx> Thanks, added to misc-next.