|
|
@ -3598,8 +3598,6 @@ static struct pool *priority_pool(int choice) |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void clear_pool_work(struct pool *pool); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Specifies whether we can switch to this pool or not. */ |
|
|
|
/* Specifies whether we can switch to this pool or not. */ |
|
|
|
static bool pool_unusable(struct pool *pool) |
|
|
|
static bool pool_unusable(struct pool *pool) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -5138,7 +5136,7 @@ void clear_stratum_shares(struct pool *pool) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void clear_pool_work(struct pool *pool) |
|
|
|
void clear_pool_work(struct pool *pool) |
|
|
|
{ |
|
|
|
{ |
|
|
|
struct work *work, *tmp; |
|
|
|
struct work *work, *tmp; |
|
|
|
int cleared = 0; |
|
|
|
int cleared = 0; |
|
|
@ -5152,6 +5150,9 @@ static void clear_pool_work(struct pool *pool) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
mutex_unlock(stgd_lock); |
|
|
|
mutex_unlock(stgd_lock); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cleared) |
|
|
|
|
|
|
|
applog(LOG_INFO, "Cleared %d work items due to stratum disconnect on pool %d", cleared, pool->pool_no); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int cp_prio(void) |
|
|
|
static int cp_prio(void) |
|
|
|