@@ -449,7 +449,7 @@ static unsigned ttm_dma_page_pool_free(struct dma_pool *pool, unsigned nr_free,
return 0;
}
INIT_LIST_HEAD(&d_pages);
-restart:
+ lock_restart:
spin_lock_irqsave(&pool->lock, irq_flags);
/* We picking the oldest ones off the list */
@@ -489,14 +489,13 @@ restart:
/* free all so restart the processing */
if (nr_free)
- goto restart;
+ goto lock_restart;
/* Not allowed to fall through or break because
* following context is inside spinlock while we are
* outside here.
*/
- goto out;
-
+ goto check_pages_to_free;
}
}
@@ -510,7 +509,7 @@ restart:
if (freed_pages)
ttm_dma_pages_put(pool, &d_pages, pages_to_free, freed_pages);
-out:
+ check_pages_to_free:
if (pages_to_free != static_buf)
kfree(pages_to_free);
return nr_free;