Add fix-clock-wrap branch
This commit is contained in:
parent
34dc7c2f25
commit
c195cf3fd5
|
@ -0,0 +1,8 @@
|
|||
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||
Subject: [PATCH] fix clock wrap
|
||||
|
||||
Fix lbolt clock wrap.
|
||||
|
||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||
|
||||
---
|
|
@ -1858,7 +1858,7 @@ arc_kmem_reap_now(arc_reclaim_strategy_t strat)
|
|||
static void
|
||||
arc_reclaim_thread(void)
|
||||
{
|
||||
clock_t growtime = 0;
|
||||
int64_t growtime = 0;
|
||||
arc_reclaim_strategy_t last_reclaim = ARC_RECLAIM_CONS;
|
||||
callb_cpr_t cpr;
|
||||
|
||||
|
@ -1881,11 +1881,11 @@ arc_reclaim_thread(void)
|
|||
}
|
||||
|
||||
/* reset the growth delay for every reclaim */
|
||||
growtime = lbolt + (arc_grow_retry * hz);
|
||||
growtime = lbolt64 + (arc_grow_retry * hz);
|
||||
|
||||
arc_kmem_reap_now(last_reclaim);
|
||||
|
||||
} else if (arc_no_grow && lbolt >= growtime) {
|
||||
} else if (arc_no_grow && lbolt64 >= growtime) {
|
||||
arc_no_grow = FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue