Skip to content
Commit 46c2df68 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Dave Airlie
Browse files

drm/ttm: Choose a pool to shrink correctly in ttm_dma_pool_shrink_scan().



We can use "unsigned int" instead of "atomic_t" by updating start_pool
variable under _manager->lock. This patch will make it possible to avoid
skipping when choosing a pool to shrink in round-robin style, after next
patch changes mutex_lock(_manager->lock) to !mutex_trylock(_manager->lork).

Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: stable <stable@kernel.org> [3.3+]
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 11e504cc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment