]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/ttm: fix fence locking in ttm_buffer_object_transfer
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 18 Dec 2012 21:25:11 +0000 (22:25 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Jan 2013 08:35:31 +0000 (18:35 +1000)
commite8e89622ed361c46bf90ba4828e685a8b603f7e5
tree76504439c1af179c0aa7377e45b38e5503dffd48
parentc75be2592c350035ce871624ebf549b4609aeeab
drm/ttm: fix fence locking in ttm_buffer_object_transfer

Noticed while reviewing the fence locking in the radeon pageflip
handler.

v2: Instead of grabbing the bdev->fence_lock in object_transfer just
move the single callsite of that function a few lines, so that it is
protected by the fence_lock. Suggested by Jerome Glisse.

v3: Fix typo in commit message.

Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo_util.c