mirror of
https://github.com/versity/scoutfs.git
synced 2025-12-23 13:35:18 +00:00
Merge pull request #266 from versity/zab/increase_move_empty_budget
Increase server commit block budget for alloc move
This commit is contained in:
@@ -1618,7 +1618,8 @@ static int server_get_log_trees(struct super_block *sb,
|
|||||||
goto update;
|
goto update;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = alloc_move_empty(sb, &super->data_alloc, <.data_freed, 100);
|
ret = alloc_move_empty(sb, &super->data_alloc, <.data_freed,
|
||||||
|
COMMIT_HOLD_ALLOC_BUDGET / 2);
|
||||||
if (ret == -EINPROGRESS)
|
if (ret == -EINPROGRESS)
|
||||||
ret = 0;
|
ret = 0;
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
@@ -1913,9 +1914,11 @@ static int reclaim_open_log_tree(struct super_block *sb, u64 rid)
|
|||||||
scoutfs_alloc_splice_list(sb, &server->alloc, &server->wri, server->other_freed,
|
scoutfs_alloc_splice_list(sb, &server->alloc, &server->wri, server->other_freed,
|
||||||
<.meta_avail)) ?:
|
<.meta_avail)) ?:
|
||||||
(err_str = "empty data_avail",
|
(err_str = "empty data_avail",
|
||||||
alloc_move_empty(sb, &super->data_alloc, <.data_avail, 100)) ?:
|
alloc_move_empty(sb, &super->data_alloc, <.data_avail,
|
||||||
|
COMMIT_HOLD_ALLOC_BUDGET / 2)) ?:
|
||||||
(err_str = "empty data_freed",
|
(err_str = "empty data_freed",
|
||||||
alloc_move_empty(sb, &super->data_alloc, <.data_freed, 100));
|
alloc_move_empty(sb, &super->data_alloc, <.data_freed,
|
||||||
|
COMMIT_HOLD_ALLOC_BUDGET / 2));
|
||||||
mutex_unlock(&server->alloc_mutex);
|
mutex_unlock(&server->alloc_mutex);
|
||||||
|
|
||||||
/* only finalize, allowing merging, once the allocators are fully freed */
|
/* only finalize, allowing merging, once the allocators are fully freed */
|
||||||
|
|||||||
Reference in New Issue
Block a user