]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Hold struct_mutex for per-file stats in debugfs/i915_gem_object
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 17 Jun 2017 11:57:44 +0000 (12:57 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 26 Jun 2017 07:53:47 +0000 (09:53 +0200)
commit9de30c899ecd262599d93f534471921ed4db15fb
treecc5d79d456e4e457b8f378258acc2749796cc7ce
parentdfc1d94f81e624f6550cd9ebf71574a1d02bc6a1
drm/i915: Hold struct_mutex for per-file stats in debugfs/i915_gem_object

As we walk the obj->vma_list in per_file_stats(), we need to hold
struct_mutex to prevent alteration of that list.

Fixes: 5f72f8a7f3d1 ("drm: Protect dev->filelist with its own mutex")
Fixes: 841df8e4e41e ("drm/i915: Move debug only per-request pid tracking from request to ctx")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101460
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170617115744.4452-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
(cherry picked from commit 0caf81b5c53d9bd332a95dbcb44db8de0b397a7c)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c