diff options
author | David Sterba <dsterba@suse.com> | 2016-04-27 02:41:17 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-05-10 09:46:13 +0200 |
commit | e721e49dd1681d45d71919f0561f5e978a34153c (patch) | |
tree | f74acacc029a10df8ba68cf1e2c0d40564a6949e /fs/hugetlbfs | |
parent | f77dd0d6b2f0f2cf290cacbd48f5eee18586e52b (diff) | |
download | linux-e721e49dd1681d45d71919f0561f5e978a34153c.tar.bz2 |
btrfs: make find_workspace always succeed
With just one preallocated workspace we can guarantee forward progress
even if there's no memory available for new workspaces. The cost is more
waiting but we also get rid of several error paths.
On average, there will be several idle workspaces, so the waiting
penalty won't be so bad.
In the worst case, all cpus will compete for one workspace until there's
some memory. Attempts to allocate a new one are done each time the
waiters are woken up.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/hugetlbfs')
0 files changed, 0 insertions, 0 deletions