drm/radeon: use RCU query for GEM_BUSY syscall
authorGrigori Goronzy <greg@chown.ath.cx>
Thu, 2 Jul 2015 23:54:10 +0000 (01:54 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2015 16:41:39 +0000 (12:41 -0400)
commit828202a382a06eda74202d4888d01a1078c68922
tree29a3600659a96e04617b1da6dd94238bdd3b263d
parentbd833144a23dead304744dc748f5d72d7e92d315
drm/radeon: use RCU query for GEM_BUSY syscall

We don't need to call the (expensive) radeon_bo_wait, checking the
fences via RCU is much faster. The reservation done by radeon_bo_wait
does not save us from any race conditions.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Grigori Goronzy <greg@chown.ath.cx>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_gem.c