logger: use brick_wait() for caller delay

This commit is contained in:
Thomas Schoebel-Theuer 2018-10-09 07:28:43 +02:00
parent ba9c973d81
commit e6a1197432

View File

@ -736,7 +736,7 @@ int _write_ref_get(struct trans_logger_output *output, struct trans_logger_mref_
#ifdef DELAY_CALLERS #ifdef DELAY_CALLERS
// delay in case of too many master shadows / memory shortage // delay in case of too many master shadows / memory shortage
wait_event_interruptible_timeout(brick->caller_event, brick_wait(brick->caller_event,
!brick->delay_callers && !brick->delay_callers &&
(brick_global_memlimit < 1024 || atomic64_read(&global_mshadow_used) / 1024 < brick_global_memlimit), (brick_global_memlimit < 1024 || atomic64_read(&global_mshadow_used) / 1024 < brick_global_memlimit),
HZ / 2); HZ / 2);