From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH 11/12 v2] drm/i915: wait render timeout ioctl Date: Sat, 28 Apr 2012 15:18:56 -0700 Message-ID: <20120428151856.10761589@bwidawsk.net> References: <1335481389-7232-1-git-send-email-ben@bwidawsk.net> <1335481389-7232-12-git-send-email-ben@bwidawsk.net> <1335516331_66033@CP5-2952> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id A0BEE9E737 for ; Sat, 28 Apr 2012 15:20:35 -0700 (PDT) In-Reply-To: <1335516331_66033@CP5-2952> 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 Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 27 Apr 2012 09:44:55 +0100 Chris Wilson wrote: > On Thu, 26 Apr 2012 16:03:08 -0700, Ben Widawsky > wrote: > > + mutex_unlock(&dev->struct_mutex); > > + ret = __wait_seqno(ring, seqno, true, &timeout); > > + drm_gem_object_unreference_unlocked(&obj->base); > > Once we have the seqno to wait on, we can drop the reference to the > object. The reference to the ring will be persist whilst the device is > open. Just saves doing an unsightly unlock/lock dance in the unref. > -Chris > Got it, thanks.