From: Daniel Vetter Subject: Re: [PATCH] drm/i915: fix the racy object accounting Date: Thu, 25 Jul 2013 10:53:04 +0200 Message-ID: <20130725085304.GH5939@phenom.ffwll.local> References: <20130724170914.GC882@cantiga.alporthouse.com> <1374698423-29287-1-git-send-email-daniel.vetter@ffwll.ch> <20130724220108.GA559@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f48.google.com (mail-ee0-f48.google.com [74.125.83.48]) by gabe.freedesktop.org (Postfix) with ESMTP id E138BE6EFC for ; Thu, 25 Jul 2013 01:53:06 -0700 (PDT) Received: by mail-ee0-f48.google.com with SMTP id b47so761733eek.35 for ; Thu, 25 Jul 2013 01:53:06 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130724220108.GA559@cantiga.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Chris Wilson , Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Wed, Jul 24, 2013 at 11:01:08PM +0100, Chris Wilson wrote: > On Wed, Jul 24, 2013 at 10:40:23PM +0200, Daniel Vetter wrote: > > Just use a spinlock to protect them. > > > > v2: Rebase onto the new object create refcount fix patch. > > > > v3: Don't kill dev_priv->mm.object_memory as requested by Chris and > > hence just use a spinlock instead of atomic_t. > > > > Cc: Chris Wilson > > Signed-off-by: Daniel Vetter > > Sadly, I have no better answer to my desire have my cake and eat it. > Reviewed-by: Chris Wilson Queued for -next, thanks for the review. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch