Message ID | 20230727134748.4163796-1-shiftee@posteo.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1174614vqo; Thu, 27 Jul 2023 08:19:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8RflY/gf/pjPp+eAkINBBCqc6obxQ3fDdMDF3Oo5WtMyMx8KpjO4ncneGrjeyrTO5KXZD X-Received: by 2002:a17:90a:c252:b0:268:39d6:3a1e with SMTP id d18-20020a17090ac25200b0026839d63a1emr4061038pjx.14.1690471187310; Thu, 27 Jul 2023 08:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690471187; cv=none; d=google.com; s=arc-20160816; b=UzCSv3Qf8+YYJIR/8BfFXmecdrPZH72znNEQTpsEy3Fd2aFblJkQvf6s05SfQvgybx ErKKFTxOSN91RUpRyBE/PSU0bwiXtxW1XN//DeXi8Feps+NgMTuL5Ws0N5fZ3K719tpL 1cQwF5dVqIk9ROKgwzUiVZqXBKvON4ULNZDNpl5p6SFxFQ30aCrYWsFSB3VpRegRKrBc OLfDNJguk3y9emiE7NfR/nTioIy5ghdQNGJCj6Z2ePG2mizw4Mt1caFPnejWFWLQ/IZE hRta9R64DtbLmnz2EG60om4eTBucATAA82guj9nbEPmpLeWjUxoQkBo6pCeX5Iu779la hFSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wJHPqyoHtiQksRg5iRHZydgfRAjfBsbfV0NVzNon1EE=; fh=hQrnR+dWZ1M7Kv0LlLHAp3Kk3ye8WfN0n9TPb3Q2SOI=; b=toOa9TYhuEbkmVBNjBDVr+JzTdweMDkAi3YvgmRfj6Uwtq3mnChdZSCEp5mZLPqM/W QfZmPb3z7/pTS7+KZI4YX6qA9aqjqwdn2n2qkVa/3IeWQPxlc8s4gha/3OqEJ83ECgy+ GG0cyDmQjorBoSvENukpmVp3XpbCzRIwXP1SQED4OC4IFH2A7eeu9mhwaYIRX/9CxKM0 wXOCOm3V9caMF7PQ1AWlkNXQYsYUlTqu5QSvdESrt4ZgoqKWQCcJOqY+uWL4OIZmHfyw QbAglANFiW/qEJKd3Sc+vqQzGKeG3y2htjHhLCt9e5Uf+rhYkpIDVBkfhCIgPwnxMg9Q hX+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=WKTdjewt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nh10-20020a17090b364a00b00259b2afc651si2900811pjb.62.2023.07.27.08.19.33; Thu, 27 Jul 2023 08:19:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=WKTdjewt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232910AbjG0N6R (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Thu, 27 Jul 2023 09:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231235AbjG0N6O (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Jul 2023 09:58:14 -0400 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0F02E64 for <linux-kernel@vger.kernel.org>; Thu, 27 Jul 2023 06:58:10 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A5237240104 for <linux-kernel@vger.kernel.org>; Thu, 27 Jul 2023 15:58:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690466287; bh=AQUkhOUuCll+t4Bc33a3LEsUOgQSYv/ROCYEwaxRzJg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=WKTdjewtQYewNsFbPNhts/D5Lcwq2i5C5lR00wPqQqI1BmHAYrpoeamviQ+DEPKpo 1lPGZ1JTnwMrUxT1UvKfSY+QxicKoDMU3IHFWSChTp7Fnxt32M9lBdmhwKs1Z2M5x0 PrEA5QFX+NQGA90Z1Xg5hdce5jbI4M5qxYLo83S5Mzdb9k8eQhQIT001LVMrBf1FiY UMeNcGJ9FYb4RB37GzRxv6/mgtCZwd0cy/rmDz/y/6aTLhqaHIK/gNLHr7QbLwTa+L L5IbASTn2m8rCrxuLPJaddU59y6PuK3CvaKCBqEugcLRI5794sRzHxKmnEUDi+b6+h Wp+SvSxEaldVw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RBXR15gqpz6tsb; Thu, 27 Jul 2023 15:58:05 +0200 (CEST) From: Mark O'Donovan <shiftee@posteo.net> To: linux-kernel@vger.kernel.org Cc: linux-nvme@lists.infradead.org, sagi@grimberg.me, hch@lst.de, axboe@kernel.dk, kbusch@kernel.org, hare@suse.de, Mark O'Donovan <shiftee@posteo.net> Subject: [PATCH 1/2] nvme-auth: unlock mutex in one place only Date: Thu, 27 Jul 2023 13:47:47 +0000 Message-Id: <20230727134748.4163796-1-shiftee@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772587515749022644 X-GMAIL-MSGID: 1772587515749022644 |
Series |
[1/2] nvme-auth: unlock mutex in one place only
|
|
Commit Message
Mark O'Donovan
July 27, 2023, 1:47 p.m. UTC
Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
---
drivers/nvme/host/auth.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
On Mon, Jul 31, 2023 at 02:00:37PM +0200, Markus Elfring wrote:
> Are imperative change descriptions still preferred?
It doesn't fucking matter. Please stop spamming nvme contributors.
On Mon, Jul 31, 2023 at 07:46:25PM +0200, Markus Elfring wrote: > >> Are imperative change descriptions still preferred? > > > > It doesn't fucking matter. > > Do you exaggerate here? > > If not: > Does such a feedback really indicate that you would intentionally like to > disagree with specific requirements from the Linux development documentation > (for a discussed patch)? The subject is already in the imperative voice, and there's really nothing furthur to elaborate that would help justify this patch's inclusion. I'm not sure what point you're trying to make here.
On Mon, Jul 31, 2023 at 08:37:12PM +0200, Markus Elfring wrote: > Does the concrete requirement for the usage of “imperative mood” > mean also that a reasonable subject would be insufficient alone > without a corresponding description (or “change log”)? The doc you linked to is a simple guide for people new to the process: "This text is a collection of suggestions" It doesn't claim to be a list of concrete requirements.
diff --git a/drivers/nvme/host/auth.c b/drivers/nvme/host/auth.c index daf5d144a8ea..e1a98647c3a2 100644 --- a/drivers/nvme/host/auth.c +++ b/drivers/nvme/host/auth.c @@ -758,12 +758,11 @@ static void nvme_queue_auth_work(struct work_struct *work) __func__, chap->qid); mutex_lock(&ctrl->dhchap_auth_mutex); ret = nvme_auth_dhchap_setup_host_response(ctrl, chap); + mutex_unlock(&ctrl->dhchap_auth_mutex); if (ret) { - mutex_unlock(&ctrl->dhchap_auth_mutex); chap->error = ret; goto fail2; } - mutex_unlock(&ctrl->dhchap_auth_mutex); /* DH-HMAC-CHAP Step 3: send reply */ dev_dbg(ctrl->device, "%s: qid %d send reply\n",