Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4049693rwb; Sun, 30 Jul 2023 23:44:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbOg5xgWxb5ROjiCD6verWG1FEQ+oaKsp7tUDc3ITBARIyJkaF3WMNIp7MTRU6kKt5US5b X-Received: by 2002:a05:6358:6f8c:b0:134:c836:8e15 with SMTP id s12-20020a0563586f8c00b00134c8368e15mr3708570rwn.32.1690785856902; Sun, 30 Jul 2023 23:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690785856; cv=none; d=google.com; s=arc-20160816; b=q5KI0TcXeSxUccKYfBBeQKHL4BGn02IqHb0BGW8yw23Px+A2M/3ggmoFBAm+1eL87M CAqtlyNZDNQJGa7xeuzFp5OLTMb3BuqPAgKVkLGq0aKVZp49CCrEUbLNtAUSaupDdSDx 2ciqU56f4CNss39owDFSd1A8E8izzxw3VKqpXL1QrmUEb3VWxFhVMIqe59JW0Q8M4cXZ 7tWRn9AVRKmUEKWqxKZZRYMTW5LFBKpxxijXG3V26zFg2R6COgb+x0nhnATxo7LmeE2s 0Syyk7wnR0YRF0qesEfU1Kr6FiR7ZRezwIomrIAAZtdfZd7cMVKneCSoeElfN5FugbWk HNqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=h6y91OBFoVTUXIYPFYmDpZb6yvZnL1uNSNSMeZirCqc=; fh=dte5ZqHcb5amsIXXxr54AL3frOdensUzMI9RjeI1SuI=; b=VBrKxLlUZC71b/NNyJMOtULSfK1Ke8yv7UoWVx4zyMfbScjh7305rTphZJYgHFNcAM 9kubiSU2kRFHrNjOtPnSgwTwtKAdeFaymHwhpIWiFSaF0ssPxEw1JiFHn1r3ifh2sMcD 4ZnwVB3GBSu6GxaocqkBa0+mxUxQGOmsClCOC9NJ5Cvrnd9FiLAbK4cTuJH8/iKqFh20 EgUjWs6OYjDcLjvmWN0C7+djtbxnqwjMNtr55skxXh7PmJRqStqLKpU+wGyquSB/aDXE y+tKt1qpHmjfxglZazlAuqfxVv11ZopCg5r+N+1sJuun2Kdra8ttoyx9GUnA8opcy2zL yBlA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020a637518000000b00563f4e46f7esi2487403pgc.287.2023.07.30.23.44.04; Sun, 30 Jul 2023 23:44:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229592AbjGaF6M (ORCPT + 99 others); Mon, 31 Jul 2023 01:58:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjGaF6L (ORCPT ); Mon, 31 Jul 2023 01:58:11 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBF2BBF for ; Sun, 30 Jul 2023 22:58:10 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 0421567373; Mon, 31 Jul 2023 07:58:07 +0200 (CEST) Date: Mon, 31 Jul 2023 07:58:06 +0200 From: Christoph Hellwig To: Mark O'Donovan Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, sagi@grimberg.me, hch@lst.de, axboe@kernel.dk, kbusch@kernel.org, hare@suse.de Subject: Re: [PATCH 2/2] nvme-auth: set explanation code for failure2 msgs Message-ID: <20230731055806.GB30150@lst.de> References: <20230727134748.4163796-1-shiftee@posteo.net> <20230727134748.4163796-2-shiftee@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230727134748.4163796-2-shiftee@posteo.net> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 27, 2023 at 01:47:48PM +0000, Mark O'Donovan wrote: > These error cases were not setting an auth-failure-reason-code-explanation. > This means an AUTH_Failure2 message will be sent with an explanation value > of 0 which is a reserved value. I'll leave the final decision to Hannes, but shouldn't we find a common place, either behind a label or in the body of the function to set chap->status? Having to add this in a lot of error labels doesn't feel very maintainable.