From: Ben Widawsky Date: Fri, 31 May 2013 18:28:47 +0000 (-0700) Subject: drm/i915: unpin pages at unbind X-Git-Tag: v3.11-rc1~65^2~61^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=401c29f607702864fd00b6154325f7570ebaba4f;p=pandora-kernel.git drm/i915: unpin pages at unbind If we properly keep track of the pages_pin_count, then when we later add multiple address spaces, the put_pages doesn't need any special checks to be able to perform it's job. CC: Chris Wilson Signed-off-by: Ben Widawsky Reviewed-by: Chris Wilson [danvet: Rebased on top of the fix for stolen memory pinning.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed