From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751515AbdJ1REW (ORCPT ); Sat, 28 Oct 2017 13:04:22 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:51760 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751298AbdJ1RES (ORCPT ); Sat, 28 Oct 2017 13:04:18 -0400 X-Google-Smtp-Source: ABhQp+S3PRsmizOA8ApmkAgtVScptoh1xuP3NAwMTc7u/2ZTiSE+vw8rlR7PVmOgZiiDNqP3XXwo4g== Date: Sat, 28 Oct 2017 10:04:11 -0700 From: Jakub Kicinski To: SF Markus Elfring Cc: netdev@vger.kernel.org, oss-drivers@netronome.com, "David S. Miller" , Simon Horman , LKML , kernel-janitors@vger.kernel.org Subject: Re: [PATCH] nfp: Improve unlocking of a mutex in area_cache_get() Message-ID: <20171028100411.7c9a3f7b@cakuba.netronome.com> In-Reply-To: References: Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 28 Oct 2017 17:18:56 +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 28 Oct 2017 17:12:10 +0200 > > Add a jump target so that a call of the function "mutex_unlock" is stored > only once at the end of this function implementation. > Replace four calls by goto statements. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Acked-by: Jakub Kicinski