|
|
@@ -3799,6 +3799,7 @@ static bool work_rollable(struct work *work)
|
|
|
static bool hash_push(struct work *work)
|
|
|
{
|
|
|
bool rc = true, dec = false;
|
|
|
+ struct pool *pool = work->pool;
|
|
|
|
|
|
if (work->queued) {
|
|
|
work->queued = false;
|
|
|
@@ -3806,7 +3807,7 @@ static bool hash_push(struct work *work)
|
|
|
}
|
|
|
|
|
|
mutex_lock(stgd_lock);
|
|
|
- work->pool->staged++;
|
|
|
+ pool->staged++;
|
|
|
if (work_rollable(work))
|
|
|
staged_rollable++;
|
|
|
if (likely(!getq->frozen)) {
|
|
|
@@ -3818,7 +3819,7 @@ static bool hash_push(struct work *work)
|
|
|
mutex_unlock(stgd_lock);
|
|
|
|
|
|
if (dec) {
|
|
|
- dec_queued(work->pool);
|
|
|
+ dec_queued(pool);
|
|
|
applog(LOG_DEBUG, "dec_queued from hash_push");
|
|
|
}
|
|
|
|