From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maarten Lankhorst Subject: Re: [PATCH 02/10] drm/ttm: remove ttm_bo_cleanup_memtype_use Date: Mon, 19 Nov 2012 15:03:11 +0100 Message-ID: <50AA3C1F.8050505@canonical.com> References: <1352728811-21860-1-git-send-email-maarten.lankhorst@canonical.com> <1352728811-21860-2-git-send-email-maarten.lankhorst@canonical.com> <50AA3372.1070004@vmware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by gabe.freedesktop.org (Postfix) with ESMTP id 1F01943704 for ; Mon, 19 Nov 2012 06:03:13 -0800 (PST) In-Reply-To: <50AA3372.1070004@vmware.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Thomas Hellstrom Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Op 19-11-12 14:26, Thomas Hellstrom schreef: > Hi, > > On 11/12/2012 03:00 PM, Maarten Lankhorst wrote: >> move to release_list instead > > Can you describe why this change is made? cleanup? reorder locks in a later patch? > Also please describe why you need move_notify and ttm unbind / destroy to be outside of > reservation, because that's the main change in this patch and it's not even mentioned in the > commit message. Ok is a reword enough? In that case I'll resend. I moved all the destruction to happen when release_list refcount drops to 0. This removes the special handling of ttm_bo_cleanup_memtype_use, and makes it part of the normal bo destruction instead. It also meant that move_notify and unbind/destroy was without reservation, simply because it was done during normal destruction instead. At that point you may no longer hold a reservation, but you can already be sure you're the only one touching it. It is optional and I can drop this patch if the behavior change is unwanted. ~Maarten