Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1778409ybh; Mon, 20 Jul 2020 07:04:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr3r4tPfHc0Z7Zsaf1RQI4csAB7rTiM2AL1H7QTgtWH3wd43vcU/B6SXT+xHpT9B/RCrb1 X-Received: by 2002:a17:906:aac1:: with SMTP id kt1mr22038056ejb.408.1595253892886; Mon, 20 Jul 2020 07:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595253892; cv=none; d=google.com; s=arc-20160816; b=YwC2K7YznXc8ApoA4p9mqd7Y1qqISTsaFbLuT7tyBzP2lpdgoF+r+rPyxFGh+YzF99 /jJDpHwPiEZAMvyR7r+6FvrdAR2cRB86WeWfAtRqv1nR3wyBmk38EMPrpL7x9hpf6x7J hqJq/WhK+UUnQ3YLNcVyaSWoeKWAfewvU/LHXikGCVgX7sdDptdTqB9iH/C52+AYhs/6 aIwmW0WDEAYiTYIPJ36/19CUOxkQqmLVYYDjaHshLmZQzwHukRU9cSjhhoHegMyh85Fz kwMFYKpc8GR2U+kUCdcuyF5o2qZq64DceHZ5oEI57K9Emm1uX/3j2x5BASjpqtk/Jug6 CUSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gaencoaRR7/UBpLk21RQkABb6zreL6gkVByXAOA0Y6c=; b=ZK4DewY3O725FmYLK5IIRbp5vsg3+7jrfl0RS6gwsPSyesQ8CPzJ1T3AfAMOIxxYc1 PfBhx6LMSCp7/uuMw2iz4M2Ch86hgOt9EYtAf92NIyEEwMtKcZzzmypThVESV6niXvh/ 6DSvVyWnEiZZ8NwHt7BgC3iPrJZHPORqrSnRvN1nLoy9gtdkXD4RvKUTOEA1evV2V6vJ T/rPs3iW8mNJ6UdRYlFxqJM87WyCa87e5xJfJ6/+nGhJcqBTAeKnw32wZnA+yDTxGta5 jjIYXDEiu9dDyXnHf9h9PD8cH8whrt51Eup0RzXqsxsBNkvcpRBkKlaw6ElMZU5zI2E1 By7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si125823edy.410.2020.07.20.07.04.28; Mon, 20 Jul 2020 07:04:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728396AbgGTOEO (ORCPT + 99 others); Mon, 20 Jul 2020 10:04:14 -0400 Received: from verein.lst.de ([213.95.11.211]:47110 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbgGTOEN (ORCPT ); Mon, 20 Jul 2020 10:04:13 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5659268BFE; Mon, 20 Jul 2020 16:04:10 +0200 (CEST) Date: Mon, 20 Jul 2020 16:04:10 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Christoph Hellwig , Sagi Grimberg , Keith Busch , Jens Axboe , Chaitanya Kulkarni , Max Gurtovoy , Stephen Bates Subject: Re: [PATCH v15 2/9] nvme: Create helper function to obtain command effects Message-ID: <20200720140410.GB4627@lst.de> References: <20200716203319.16022-1-logang@deltatee.com> <20200716203319.16022-3-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200716203319.16022-3-logang@deltatee.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 16, 2020 at 02:33:12PM -0600, Logan Gunthorpe wrote: > Separate the code to obtain command effects from the code > to start a passthru request and open code nvme_known_admin_effects() > in the new helper. > > The new helper function will be necessary for nvmet passthru > code to determine if we need to change out of interrupt context > to handle the effects. I actually found the nvme_known_admin_effects pretty nice, as the function name documents why it is there. The rest looks fine to me.