btrfs: reada: bypass adding extent when all zone failed
authorZhao Lei <zhaolei@cn.fujitsu.com>
Thu, 31 Dec 2015 10:48:54 +0000 (18:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 18 Feb 2016 09:26:12 +0000 (10:26 +0100)
commit319450211842ba92d0604af6e4ddf15f445efbcf
treedfcde7d6d0048928a9cfd8ec4b2be64f506e0f98
parent6a159d2ae488a835a8ca5f1f658db72b7e13d064
btrfs: reada: bypass adding extent when all zone failed

When failed adding all dev_zones for a reada_extent, the extent
will have no chance to be selected to run, and keep in memory
for ever.

We should bypass this extent to avoid above case.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/reada.c