Zhao Lei 2fefd5583f btrfs: reada: limit max works count
Reada creates 2 works for each level of tree recursively.

In case of a tree having many levels, the number of created works
is 2^level_of_tree.
Actually we don't need so many works in parallel, this patch limits
max works to BTRFS_MAX_MIRRORS * 2.

The per-fs works_counter will be also used for btrfs_reada_wait() to
check is there are background workers.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2016-02-18 10:27:23 +01:00
..
2016-01-22 10:28:24 +01:00
2016-02-18 10:27:23 +01:00
2016-02-18 10:27:23 +01:00
2015-10-06 06:55:23 -07:00
2008-09-25 11:04:06 -04:00
2016-01-22 18:04:28 -05:00
2014-10-14 10:51:22 +02:00
2016-02-18 10:27:23 +01:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00