summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-10-01 12:34:45 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-10-06 14:15:29 +0200
commit68d6c840595849c0d29f6c52bc75b44ded66b41f (patch)
treec53a80755328b103bdf4c79c60d4f5a7e037f318 /tools/perf/scripts/python
parent24dfd0736c9fc01d096e5760c656032b5a07e962 (diff)
drm/i915: Only update the current userptr worker
The userptr worker allows for a slight race condition where upon there may two or more threads calling get_user_pages for the same object. When we have the array of pages, then we serialise the update of the object. However, the worker should only overwrite the obj->userptr.work pointer if and only if it is the active one. Currently we clear it for a secondary worker with the effect that we may rarely force a second lookup. v2: Rebase and rename a variable to avoid 80cols v3: Mention v2 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions