drm/vma_manage: Drop has_offset
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Mar 2016 09:40:52 +0000 (11:40 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Apr 2016 10:58:53 +0000 (12:58 +0200)
commitf74418a400c62f382228842fd0ce8a05f9069d8c
tree0be631b837de2a008461d8a18072922ecdf69c0a
parent0797ac61810b9b9938516ad9c92701d1639a0867
drm/vma_manage: Drop has_offset

It's racy, creating mmap offsets is a slowpath, so better to remove it
to avoid drivers doing broken things.

The only user is i915, and it's ok there because everything (well
almost) is protected by dev->struct_mutex in i915-gem.

While at it add a note in the create_mmap_offset kerneldoc that
drivers must release it again. And then I also noticed that
drm_gem_object_release entirely lacks kerneldoc.

Cc: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459330852-27668-14-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/i915/i915_gem.c
include/drm/drm_vma_manager.h