|
@@ -85,7 +85,6 @@ void gen_pool_destroy(struct gen_pool *pool)
|
|
int bit, end_bit;
|
|
int bit, end_bit;
|
|
|
|
|
|
|
|
|
|
- write_lock(&pool->lock);
|
|
|
|
list_for_each_safe(_chunk, _next_chunk, &pool->chunks) {
|
|
list_for_each_safe(_chunk, _next_chunk, &pool->chunks) {
|
|
chunk = list_entry(_chunk, struct gen_pool_chunk, next_chunk);
|
|
chunk = list_entry(_chunk, struct gen_pool_chunk, next_chunk);
|
|
list_del(&chunk->next_chunk);
|
|
list_del(&chunk->next_chunk);
|