Received: by 10.192.165.148 with SMTP id m20csp384174imm; Fri, 20 Apr 2018 00:24:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/5NrJZMlq7DrJm/J0JBUh/9LwETG0sBDe8c2fhggh2qp4+DarjSl41UluiB/jeEOKuv8SY X-Received: by 10.99.98.69 with SMTP id w66mr7680091pgb.55.1524209095963; Fri, 20 Apr 2018 00:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524209095; cv=none; d=google.com; s=arc-20160816; b=iHtK+FGlw7sA5Wx6rgAq3WiEooD+JIIVN610y1KEdUjGUi5V/6LGZus1TlDw9LfrTi TBotsH/Al0fLtV+AgcLy56XvkhRx+QeYZ2vdP7rJh8yDqKiM5TdZI3E1MEW6O7doqXli D8qiKcgdm0TKYkuw8qyWsPzx41LfOJrYJY+Hg6782/z1+9dzOef4GqiSmY0NR/mwvnSE SEm89oe46+4+Lw4qp/fJ9Ap97EB0PmqanfAQC90LBinb726CiXXRkrhAn8fmEutGl+aK 6ugmmK53lgFxKubb4KgqVbWMigLKq+nZW3g4wVsIBw5GOskE5F4w2x3hvVAR9PFtUxCG fiFQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ytb07qjrC6ntGTrR5vg9+iY2nyCV6VP6CdCERvEfql0=; b=AOt/B1/B8wEvkjz1WUvB5tZ8IiugaCoxlvvtaDHTmbEGx0DZ4Y7kNO1ozRlzDxbFn5 glM609NtcemvqJXaiApDuqk1qutXejPmhtTVslNU7Yc0ml067AQ9Cp7aaXKtAeLeXx5n LuSQyd83UDrI9zT2KwWNugaeT6RbuqpUjLavjaqNbW6QtBx/TcDODl09mRMYjjxrAMks WLVs4c1SGq6pV85MVmNzssPytSF4CCCU3lyN44TJpKsPcNSP4bf/CTG1vHCfgYv750zv IQK+t/PJ7Khq4tAg+bTSRW8EDwWGeofkHz9Gu6u2Ie3wCaY7AIw/fqujVVfGQ24Xi/Sm ssBA== ARC-Authentication-Results: i=1; mx.google.com; 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 x189si4475575pgb.384.2018.04.20.00.24.41; Fri, 20 Apr 2018 00:24:55 -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; 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 S1754029AbeDTHXc (ORCPT + 99 others); Fri, 20 Apr 2018 03:23:32 -0400 Received: from mail.bootlin.com ([62.4.15.54]:54911 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753539AbeDTHX3 (ORCPT ); Fri, 20 Apr 2018 03:23:29 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id DBD8A207AD; Fri, 20 Apr 2018 09:23:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id ACD9C203B7; Fri, 20 Apr 2018 09:23:16 +0200 (CEST) Date: Fri, 20 Apr 2018 09:23:16 +0200 From: Maxime Ripard To: Paul Kocialkowski Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Chen-Yu Tsai , Pawel Osciak , Marek Szyprowski , Kyungmin Park , Hans Verkuil , Sakari Ailus , Philipp Zabel , Arnd Bergmann , Alexandre Courbot , Tomasz Figa Subject: Re: [PATCH v2 01/10] media: v4l2-ctrls: Add missing v4l2 ctrl unlock Message-ID: <20180420072316.sifritx54mppgwz3@flea> References: <20180419154124.17512-1-paul.kocialkowski@bootlin.com> <20180419154124.17512-2-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yqpvzbuk2a5n4355" Content-Disposition: inline In-Reply-To: <20180419154124.17512-2-paul.kocialkowski@bootlin.com> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yqpvzbuk2a5n4355 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 19, 2018 at 05:41:15PM +0200, Paul Kocialkowski wrote: > This adds a missing v4l2_ctrl_unlock call that is required to avoid > deadlocks. Maybe you can explain what the deadlock scenario is? > Signed-off-by: Paul Kocialkowski > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-co= re/v4l2-ctrls.c > index f67e9f5531fa..ba05a8b9a095 100644 > --- a/drivers/media/v4l2-core/v4l2-ctrls.c > +++ b/drivers/media/v4l2-core/v4l2-ctrls.c > @@ -3614,10 +3614,12 @@ void v4l2_ctrl_request_complete(struct media_requ= est *req, > continue; > =20 > v4l2_ctrl_lock(ctrl); > + > if (ref->req) > ptr_to_ptr(ctrl, ref->req->p_req, ref->p_req); > else > ptr_to_ptr(ctrl, ctrl->p_cur, ref->p_req); > + I'm not sure that this is relevant in this patch. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --yqpvzbuk2a5n4355 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlrZlVcACgkQ0rTAlCFN r3Ta5g//U10D/ucGkinLguIgg52ZcwICCeHZjAnqkWjobQv9c6ehmRQoSvUadY+I 7tr4APQa1bOeBfXDheWw2GicNmefCYOFAHxXjdRsIoTJeTJRvLYlSqGVfP4rF9mP 6s69+J2zbTLiSGSDajNV6akt4te9JB3ribKl1ayzRnXmWgA79yNXNDcfBDVZZYMB xMtoKrsR9sheG2AYdFNHo7+BLzpJsp9kCOguwTUbDXy6mcC9APrpWMUmFRRPeTtk ZBZJopxNGlSQixq5b8a4CTx4abQoWj+ccSTY0JwHUsaV6XuMqhPVE56KM70m0MlF xS41Qn9y6p2hTSmXDIsB4pqF6Ii+OOJtZXAqj0OPBTSxKDNNy6JegNCvJOuZxVRI lDDTpXbABTt4BM/3wpd3Zn59Mn4t72NlGQI2uJoj99nnE/0vCr+fGVCNLqMyZ89n tNZhp5vDWp6pxjj64m3Me9Qf0GKjJaHUuWDqLmhnIBUTyFoi/f/tJLza6diehJXD 2lMyWwE4m/NL7RO2Y9835nhdNvPTy2/Pc15HMOd3ZNlhHWQUbTNZUdN4fIyfbOKc xwQg5lMf5Gn2RFxXLC9+/jjNsQ0APbr9e/Qw6Vive2foe63mF0DXSBGLPRk7tgID lAy2ty+JVhKVRXrbvQxgf5WaAwXTu28tiqz1qAP8Nk3eNZO/X1s= =UQpD -----END PGP SIGNATURE----- --yqpvzbuk2a5n4355--