Files
android_kernel_xiaomi_sm8450/fs/btrfs
David Sterba e721e49dd1 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>
2016-05-10 09:46:13 +02:00
..
2015-10-06 06:55:23 -07:00
2008-09-25 11:04:06 -04:00
2014-10-14 10:51:22 +02:00
2016-04-04 16:29:22 +02:00
2016-05-06 15:22:49 +02:00