copy: yield CPU more often

This commit is contained in:
Thomas Schoebel-Theuer 2023-05-25 15:35:04 +02:00
parent 31788c0acf
commit 8e1e2f81a3

View File

@ -1060,6 +1060,8 @@ static int _copy_thread(void *data)
int progress = 0;
loff_t check_hint;
brick_yield();
old_start = brick->stable_copy_start;
old_end = brick->stable_copy_end;
if (old_end > 0) {