]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Free the imported shmemfs file for phys objects
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Aug 2019 11:07:52 +0000 (12:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Aug 2019 12:32:29 +0000 (13:32 +0100)
commit21d904a70b77d018ba4328aea25d1fd35ffcbd20
tree6dd71306d291e020a32088a05df536460a18ddaa
parent80ace63ce6e2e6e74cce70a3a29f5595f39b79d4
drm/i915: Free the imported shmemfs file for phys objects

Matthew spotted that we lost the fput() for phys objects now that we are
not relying on the core to cleanup the GEM object. (For the record, phys
objects import the shmemfs from their original set of pages and keep it
to provide swap space, but we never transform back into a shmem object.)

Reported-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 41c0a73cac34 ("drm/i915/gem: Defer obj->base.resv fini until RCU callback")
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190809110752.19763-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_phys.c