Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1831914ybn; Thu, 26 Sep 2019 02:55:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAcNfLk9kpMC5XlP20vNgvzXC/j/Jed76/utleVxF5U9qFnmPsWiyfN6CHsjpmDuLTVrVw X-Received: by 2002:a05:6402:128c:: with SMTP id w12mr2554727edv.158.1569491737759; Thu, 26 Sep 2019 02:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569491737; cv=none; d=google.com; s=arc-20160816; b=Qrsb4FosEkRtcnXTHHeRy9et3e8RB3mDw3oKerDwNwFRDT8bGDuzFf6B0RkK6WYNYT 2pAi9TkjK7JOyhnNFmG3g5VXtJtxrKAJ42O82DY3+TV4ppssYHuOeY25iu4ucXwjcaDt 9l6hytlT6ktZNba0gMat3UFcCwQpxXdI0RPt/V5gCnRyPgN/v6dl0g8zP8wYfLRSspEf mciVOK1rfXo4wY15zYiU8hhfrj3zUp7rurdSvbrpVL5IjGLvEsG/GVwnSNHEg6h05Pqc nxnFqe7ai2Q3/OMpeP5W6K7QEyYtCckqRGpSnwX7taH81+S6EctofHijHxqiEgECRL3T irOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Xm8JaZt34JpJZouJEYtJCJAMSPrJXNrwaxHnJcFeAUc=; b=oohxRujVhs5qFxtq9XGsXIobdqVpMoucMB1BpL8E/RVVG7Vfmg+Nfw5BbaHwZQ3cX1 Yagr+9tdv3dIPzEOXvkZq37ZUJhxsU5j4KIOmzoo9drZco+PnDi+U3JvlnZ+26DHtJEH EHZwTUrzTSixJjJwz/hGp3btQLwrRF29TFw1Dwfs/6BLuYUXUykeylj583Rer3x2Hrl2 rwjEYN8BS4qAMzjTVrsL1i9f70gAitA5wYW1e6tUXskYSNaJ98ZN3FBykgdQekXzqrne D737ArdSTEeiy85ti4Y2bffezDG+MmPA3mYp4mxPSBKsrgtAdo0m7OTTMo95Kmp/voY8 5Bmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=GROI0zk6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f31si1074360ede.253.2019.09.26.02.55.14; Thu, 26 Sep 2019 02:55:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=GROI0zk6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407401AbfIYTON (ORCPT + 99 others); Wed, 25 Sep 2019 15:14:13 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:41494 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726136AbfIYTON (ORCPT ); Wed, 25 Sep 2019 15:14:13 -0400 Received: by mail-yw1-f66.google.com with SMTP id 129so2471017ywb.8 for ; Wed, 25 Sep 2019 12:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Xm8JaZt34JpJZouJEYtJCJAMSPrJXNrwaxHnJcFeAUc=; b=GROI0zk6+t9b0o8qqBzvwit83Yf8otVuWk37zltV/UUXle6QghuPqbyoYrG0Z6J2ZP Tfu0DGGAJcJ8fbrjPU8Ne6kAbUDXfn/X4DYEn1qFFGelOHHo3vcqhqOoFxQlC1stM/dK b/EKY9GHQzBA26NFrGrttU0aDqsU+51fOzSSz0S59o1DmJy5rJWXwZ9zLPmoIKq3t5Li 9W2I/1loIpreSw6/DT3B6oL0jZ9as60r05gCvYhuyUgeY08azGHvBVH9GIjgtRVfvJtz DW3Py2+6uEtPlxMDLj3FrVzLn7bQFQo1QGFlRDgmp0GyO6PujgUgaaiOodrLF8sF6xTq h8cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Xm8JaZt34JpJZouJEYtJCJAMSPrJXNrwaxHnJcFeAUc=; b=GdaKwlCaEmjtAhKQFruzXRn2PiiFcOtTOjehSbd+6qthM0zcdhx8w89QHvrMftb8Hp I/kO51v0gMYi+kw8QdMBVx1em6WjUu1VREhi5v4fqc2UBkrh19k1j8414U76qZ1XXnSl qKyOWA6mWL81XLGHmTI89zPh1n9/zODDfTOcUmcEltHzluHvrmXnneBs/wTdqd9PH80D cB/t9LJTECdNQNP/5GfCK6eC7Rj78WOwGpCmmkePbS8T1ZBpcUZJNlaEMr4qMKPizbWQ gx0JEUN4laE/WutxL0Uak64RqUKwEBZQkOPRksvGvKmG9RoGHBb9i4q+xnvbL25/6XIW wRzg== X-Gm-Message-State: APjAAAUcJwu5p4up+p1TLFJ9gLUlqgiVVSpa/54H7PWgKA7uXp+/Pj3I b4ObgRmXqFr1oqX+lezb6NjsWQ== X-Received: by 2002:a81:9917:: with SMTP id q23mr7379227ywg.404.1569438850932; Wed, 25 Sep 2019 12:14:10 -0700 (PDT) Received: from localhost ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id s187sm1484200ywd.27.2019.09.25.12.14.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 12:14:08 -0700 (PDT) Date: Wed, 25 Sep 2019 15:14:08 -0400 From: Sean Paul To: Lyude Paul Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Juston Li , Imre Deak , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Harry Wentland , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 14/27] drm/dp_mst: Destroy topology_mgr mutexes Message-ID: <20190925191408.GG218215@art_vandelay> References: <20190903204645.25487-1-lyude@redhat.com> <20190903204645.25487-15-lyude@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190903204645.25487-15-lyude@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 03, 2019 at 04:45:52PM -0400, Lyude Paul wrote: > Turns out we've been forgetting for a while now to actually destroy any > of the mutexes that we create in drm_dp_mst_topology_mgr. So, let's do > that. > > Cc: Juston Li > Cc: Imre Deak > Cc: Ville Syrj?l? > Cc: Harry Wentland > Cc: Daniel Vetter > Signed-off-by: Lyude Paul Cleanup is overrated :) Reviewed-by: Sean Paul > --- > drivers/gpu/drm/drm_dp_mst_topology.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c > index 74161f442584..2f88cc173500 100644 > --- a/drivers/gpu/drm/drm_dp_mst_topology.c > +++ b/drivers/gpu/drm/drm_dp_mst_topology.c > @@ -4339,6 +4339,11 @@ void drm_dp_mst_topology_mgr_destroy(struct drm_dp_mst_topology_mgr *mgr) > mgr->aux = NULL; > drm_atomic_private_obj_fini(&mgr->base); > mgr->funcs = NULL; > + > + mutex_destroy(&mgr->delayed_destroy_lock); > + mutex_destroy(&mgr->payload_lock); > + mutex_destroy(&mgr->qlock); > + mutex_destroy(&mgr->lock); > } > EXPORT_SYMBOL(drm_dp_mst_topology_mgr_destroy); > > -- > 2.21.0 > -- Sean Paul, Software Engineer, Google / Chromium OS