summaryrefslogtreecommitdiff
path: root/mm/userfaultfd.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-11-14 20:40:56 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-11-14 21:00:20 +0000
commit556b748710586afa24a696ba81fe89dc7f41cebd (patch)
treee82704c7986a2206fa66d0386fd6b54ec45f855c /mm/userfaultfd.c
parente3c566dfe4df07e007c9795356c63d5635664e5e (diff)
drm/i915: Give each sw_fence its own lockclass
Localise the static struct lock_class_key to the caller of i915_sw_fence_init() so that we create a lock_class instance for each unique sw_fence rather than all sw_fences sharing the same lock_class. This eliminate some lockdep false positive when using fences from within fence callbacks. For the relatively small number of fences currently in use [2], this adds 160 bytes of unused text/code when lockdep is disabled. This seems quite high, but fully reducing it via ifdeffery is also quite ugly. Removing the #fence strings saves 72 bytes with just a single #ifdef. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20161114204105.29171-1-chris@chris-wilson.co.uk
Diffstat (limited to 'mm/userfaultfd.c')
0 files changed, 0 insertions, 0 deletions