|
|
@@ -4216,6 +4216,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;
|
|
|
@@ -4223,7 +4224,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)) {
|
|
|
@@ -4235,7 +4236,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");
|
|
|
}
|
|
|
|