On Thu, 30 Sep 2010 09:10:26 +0100, Chris Wilson chris@chris-wilson.co.uk wrote:
In order to be fully threadsafe we need to check that the drm_gem_object refcount is still 0 after acquiring the mutex in order to call the free function. Otherwise, we may encounter scenarios like:
[snip]
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30454 Reported-by: Magnus Kessler Magnus.Kessler@gmx.net Signed-off-by: Chris Wilson chris@chris-wilson.co.uk Cc: Dave Airlie airlied@redhat.com Cc: stable@kernel.org
Reported-and-tested-by: Magnus Kessler Magnus.Kessler@gmx.net