From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wK3dz4d82zDqFG for ; Fri, 5 May 2017 17:37:59 +1000 (AEST) Date: Fri, 5 May 2017 10:37:44 +0300 From: Dan Carpenter To: Andrew Donnellan Cc: Ian Munsie , Christophe Lombard , kernel-janitors@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Frederic Barrat Subject: Re: [PATCH] cxl: Unlock on error in probe Message-ID: <20170505073744.yqwfhunn6rlqiupf@mwanda> References: <20170505053622.0670F124037@b01ledav002.gho.pok.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, May 05, 2017 at 05:14:15PM +1000, Andrew Donnellan wrote: > sem is a global and it looks like it's intended to be held after > device_open() returns and only released in device_close(), so this looks > wrong. > This doesn't affect the success path, it only means that if device_open() fails because we don't have enough free memory or whatever then we can try again later. regards, dan carpenter