From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754383AbcDVPHJ (ORCPT ); Fri, 22 Apr 2016 11:07:09 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:34690 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753404AbcDVPHH (ORCPT ); Fri, 22 Apr 2016 11:07:07 -0400 Date: Fri, 22 Apr 2016 16:07:01 +0100 From: Mark Brown To: John Ogness Cc: linux-kernel@vger.kernel.org Message-ID: <20160422150701.GG3217@sirena.org.uk> References: <87wpnp90hc.fsf@linutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="K+L15n4vPMSPOAOM" Content-Disposition: inline In-Reply-To: <87wpnp90hc.fsf@linutronix.de> X-Cookie: Tomorrow, you can be anywhere. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 2a01:348:6:8808:fab::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH] regulator: core: grab supply info before unlocking X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --K+L15n4vPMSPOAOM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Apr 22, 2016 at 04:33:51PM +0200, John Ogness wrote: > It is necessary to check if there is a supply while still holding > the regulator lock. Otherwise a theoretical race can occur that > someone else can add a supply and then we incorrectly try to > unlock that newly added regulator. I don't understand this. What do you mean by "add a supply"? --K+L15n4vPMSPOAOM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXGj4UAAoJECTWi3JdVIfQGZIH/j3DJpGShXS5tkXm8P1pOV08 F+yiVKsQNFYBX75jsJQIrx/rTQ4AXQwCagBuzxmwJqaFMfjbFvq/B+MsFg2tcysn 5YbqK4HDRaSJhlM5tzjhWRmb04e+1sSxMX35G5sNTOP/HMGuSjnoLqRRfbVNd0L6 Eew+7BUNM8Muu35CxvE8nF34SNLPijigxDhFNZhQ+v+S6WbcDv8SSq0M22FNQrBl hRRZrwvP1flpXx36JKDpNbKADZLrV7dzUBpcpVZdQko+PhcIdVAnt9/ylenlIz5P UzOSbbz3jNeGFk9jOCRR4NiAu4wM/tCHXxswG0UYqzSqApT+OwK+keYF8IKtLmE= =+mv7 -----END PGP SIGNATURE----- --K+L15n4vPMSPOAOM--