mirror of
https://github.com/schoebel/mars
synced 2025-02-27 18:10:51 +00:00
logger: use brick_wait() for caller delay
This commit is contained in:
parent
ba9c973d81
commit
e6a1197432
@ -736,7 +736,7 @@ int _write_ref_get(struct trans_logger_output *output, struct trans_logger_mref_
|
||||
|
||||
#ifdef DELAY_CALLERS
|
||||
// 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_global_memlimit < 1024 || atomic64_read(&global_mshadow_used) / 1024 < brick_global_memlimit),
|
||||
HZ / 2);
|
||||
|
Loading…
Reference in New Issue
Block a user