]> git.baikalelectronics.ru Git - kernel.git/commit
drm/savage: clean up reclaim_buffers
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Oct 2011 22:14:15 +0000 (00:14 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Jul 2012 02:50:16 +0000 (22:50 -0400)
commit347056c8123378735d1b6d53d2799cba8fa726c8
tree9a6afff5fe812b63bed412cf442fe2c3a453671e
parent1543f7e27a4ede9ef5ad8c75ba8edc448633ecc2
drm/savage: clean up reclaim_buffers

The reclaim_buffers function of the savage driver actually wants to run
with the hw_lock held - at least there are printks in the call-chain
to that effect. But the drm core only calls reclaim_buffers as used
by savage _after_ forcefully dropping the hwlock (in case it's still
hold by the closing fd).

So do the same idlelock dance as for the other dma drivers and hope
that papers over any issues.

v2: Don't let the idlelock linger around.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Tormod Volden <debian.tormod@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/savage/savage_bci.c
drivers/gpu/drm/savage/savage_drv.c