mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cleanup: smaller timeout
1s -> 0.5s Also indent fix.
This commit is contained in:
parent
07d92322c1
commit
c81005dcc4
@ -314,10 +314,11 @@ int lv_cache_wait_for_clean(struct logical_volume *cache_lv, int *is_clean)
|
||||
break;
|
||||
|
||||
if (cleaner_policy) {
|
||||
log_print_unless_silent(FMTu64 " blocks must still be flushed.",
|
||||
dirty_blocks);
|
||||
sleep(1);
|
||||
continue;
|
||||
log_print_unless_silent(FMTu64 " blocks must still be flushed.",
|
||||
dirty_blocks);
|
||||
/* TODO: Use centralized place */
|
||||
usleep(500000);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Switch to cleaner policy to flush the cache */
|
||||
@ -326,7 +327,7 @@ int lv_cache_wait_for_clean(struct logical_volume *cache_lv, int *is_clean)
|
||||
cache_seg->cleaner_policy = 1;
|
||||
/* Reaload kernel with "cleaner" policy */
|
||||
if (!lv_update_and_reload_origin(cache_lv))
|
||||
return_0;
|
||||
return_0;
|
||||
}
|
||||
|
||||
*is_clean = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user