Displaying 3 results from an estimated 3 matches for "flush_delalloc".
2010 Mar 12
2
[PATCH] Btrfs: force delalloc flushing when things get desperate
..., we don''t want everybody to wait around forever,
so we wake up the waiters when we''ve done some of the work in hopes that its
enough work to get everything they need done. The problem with this is we don''t
wait long enough sometimes. So if we''ve already done a flush_delalloc and
didn''t find what we need, do it again and this time wait for the flushing to be
completely finished before returning. This makes my ENOSPC test actually
finish, instead of finishing in about 20 seconds. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
---
fs/btrfs/extent...
2013 Aug 29
0
[PATCH] Btrfs: don't use an async starter for most of our workers
...&fs_info->generic_worker);
btrfs_init_workers(&fs_info->delalloc_workers, "delalloc",
- fs_info->thread_pool_size,
- &fs_info->generic_worker);
+ fs_info->thread_pool_size, NULL);
btrfs_init_workers(&fs_info->flush_workers, "flush_delalloc",
- fs_info->thread_pool_size,
- &fs_info->generic_worker);
+ fs_info->thread_pool_size, NULL);
btrfs_init_workers(&fs_info->submit_workers, "submit",
min_t(u64, fs_devices->num_devices,
- fs_info->thread_pool_size),
- &am...
2012 Jul 31
2
Btrfs Intermittent ENOSPC Issues
...transaction ->
start_transaction -> btrfs_block_rsv_add -> reserve_metadata_bytes.
(3) The ENOSPC condition will usually clear in a few seconds,
allowing writes to proceed.
(4) I''ve added a loop to the reserve_metadata_bytes() function to
loop back with ''flush_state = FLUSH_DELALLOC (1)'' for 1024 retries.
This reduces and/or eliminates the ENOSPC errors, as if we''re waiting
on something else that is trying to complete.
(5) I''ve been heavily debugging the reserve_metadata_bytes()
function, and I''m seeing problems with the way
space_info->...