From: Daniel Vetter Subject: Re: [PATCH 2/2] drm/i915: fix the racy object accounting Date: Wed, 24 Jul 2013 23:30:30 +0200 Message-ID: <20130724213030.GB5939@phenom.ffwll.local> References: <1374673783-18900-1-git-send-email-daniel.vetter@ffwll.ch> <1374673783-18900-2-git-send-email-daniel.vetter@ffwll.ch> <20130724170914.GC882@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 D2013E6938 for ; Wed, 24 Jul 2013 14:30:32 -0700 (PDT) Received: by mail-ee0-f48.google.com with SMTP id b47so501660eek.21 for ; Wed, 24 Jul 2013 14:30:31 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130724170914.GC882@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 06:09:14PM +0100, Chris Wilson wrote: > On Wed, Jul 24, 2013 at 03:49:43PM +0200, Daniel Vetter wrote: > > Use an atomic_t for the count (since that is useful for leak detection > > in tests) and just rip out the object memory check. > > > > v2: Rebase onto the new object create refcount fix patch. > > > > Cc: Chris Wilson > > Signed-off-by: Daniel Vetter > > I will miss that summary of total allocation bytes, and would actually > like to have the information provided by the patch you reverted earlier. We already dump both the bound and unbound list, and imo adding those up and claiming is everything is too misleading. I guess I could do a spinlock around the object_memory instead, but since I only cared about the object count I didn't bother. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch