Add fix-clock-wrap branch

This commit is contained in:
Brian Behlendorf 2008-11-20 12:51:54 -08:00
parent 34dc7c2f25
commit c195cf3fd5
3 changed files with 12 additions and 3 deletions

1
.topdeps Normal file
View File

@ -0,0 +1 @@
master

8
.topmsg Normal file
View File

@ -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>
---

View File

@ -1858,7 +1858,7 @@ arc_kmem_reap_now(arc_reclaim_strategy_t strat)
static void static void
arc_reclaim_thread(void) arc_reclaim_thread(void)
{ {
clock_t growtime = 0; int64_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;
@ -1881,11 +1881,11 @@ arc_reclaim_thread(void)
} }
/* reset the growth delay for every reclaim */ /* 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); arc_kmem_reap_now(last_reclaim);
} else if (arc_no_grow && lbolt >= growtime) { } else if (arc_no_grow && lbolt64 >= growtime) {
arc_no_grow = FALSE; arc_no_grow = FALSE;
} }