Revert fix-clock-wrap fixed upstream
This was more or less fixed upstream. Instead of directly accessing lbolt they now use ddi_get_lbolt() which we can have do the right thing is the SPL so we don't need to carry this patch.
This commit is contained in:
parent
1e8fbfb2e6
commit
db069704ed
|
@ -1994,7 +1994,7 @@ arc_kmem_reap_now(arc_reclaim_strategy_t strat)
|
||||||
static void
|
static void
|
||||||
arc_reclaim_thread(void)
|
arc_reclaim_thread(void)
|
||||||
{
|
{
|
||||||
int64_t growtime = 0;
|
clock_t growtime = 0;
|
||||||
arc_reclaim_strategy_t last_reclaim = ARC_RECLAIM_CONS;
|
arc_reclaim_strategy_t last_reclaim = ARC_RECLAIM_CONS;
|
||||||
callb_cpr_t cpr;
|
callb_cpr_t cpr;
|
||||||
|
|
||||||
|
@ -2017,12 +2017,12 @@ arc_reclaim_thread(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reset the growth delay for every reclaim */
|
/* reset the growth delay for every reclaim */
|
||||||
growtime = lbolt64 + (arc_grow_retry * hz);
|
growtime = lbolt + (arc_grow_retry * hz);
|
||||||
|
|
||||||
arc_kmem_reap_now(last_reclaim);
|
arc_kmem_reap_now(last_reclaim);
|
||||||
arc_warm = B_TRUE;
|
arc_warm = B_TRUE;
|
||||||
|
|
||||||
} else if (arc_no_grow && lbolt64 >= growtime) {
|
} else if (arc_no_grow && lbolt >= growtime) {
|
||||||
arc_no_grow = FALSE;
|
arc_no_grow = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue