Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2906873iog; Mon, 27 Jun 2022 05:31:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vq0pWR8uCMqTSxwjrq2JyxEH7Y81Ro2Vv8DekRhW9zjNk7prW7a1mtBMhqN2Q8K33dAD3U X-Received: by 2002:a17:902:d5c9:b0:16a:26a1:7673 with SMTP id g9-20020a170902d5c900b0016a26a17673mr14208393plh.68.1656333093572; Mon, 27 Jun 2022 05:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656333093; cv=none; d=google.com; s=arc-20160816; b=qJlmw+xqr/OXUKSScs8DcozZbPB9l2IFee6CQ6ntbJk1Fj8nXMZORXGG/V4DysCSRh yUEnR4Q6+BBs+p/TsNNfjXnukzE0ePacLhKIlqMDVXVWjUNjXUyGLsfJ3TRejJzAlkRj ZTq8uXk4r7fCPswY7KeO1C3UuiwoYlyuTtowWqerbJAUvoXN7zftrj0CUthSjJFNPLiq KspgCgdpZ9uvljHonFVELZAODm17c1DyaufIkYlk2e/m1aPk4fgBCT3jHoEsooucWq6R A98aWyEKXNg3eLjYe8gpnn1fwQ6eqFSi0Bb+h7qZEknFcErut7+X8t1CL3/p3aLji6+h BECw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bIiqFP8DDSg6LZ+QHoCn90HrmP2zE6pYHrl1FlFadqg=; b=deCCVv/SYNhtV16fxdvWOP4ps8DrSS+f+cnlb4oE+EsQsfWPBhI5FUZ8kpDTABZR8d NweOHW1ocy0s5k9OtFeUuuApBcjKcRpQG/iFkuxQGjxpmlg/CjEbQVvDeJw6u13XdNex mqnPh30fQhZdq3dN0GJ+Zcn4flhSvkGhytDmZIJmCYkRvsLCR1PS35gzyOlplHRM7zh5 zFdWdtqeMoTUYeIKtk8v1mfHiPsrw/1prBqBALXKSezOt29otSr7ezp+v12oewL6wn6d 83LWSFdWBaQAx3JB0p28OL2n/KfqJIKC4jBeS+4wwGFmi+cFJqHLDDmS/39gbvcMF3gt 0iRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BhZdKnxQ; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j187-20020a638bc4000000b0040cb763766fsi12344421pge.588.2022.06.27.05.31.21; Mon, 27 Jun 2022 05:31:33 -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=@linuxfoundation.org header.s=korg header.b=BhZdKnxQ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235044AbiF0L0T (ORCPT + 99 others); Mon, 27 Jun 2022 07:26:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234858AbiF0LZh (ORCPT ); Mon, 27 Jun 2022 07:25:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A8386589; Mon, 27 Jun 2022 04:25:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2D3C2612D8; Mon, 27 Jun 2022 11:25:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A228C341C8; Mon, 27 Jun 2022 11:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329115; bh=ef0ZC5zahaTv/gEfvBpO+O2nzAHBh9AkJUerkA/u/nY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BhZdKnxQBOfJ2gW4fZjMAQSade5/KR7gue1XCyAU9MltP/2fxWLIOrJGEnBWVxpE6 kMOI68DPL/JT5Ulyye5fPlfZz2XlyDd8k1L2Q6ODjj71RdCdkJU8B3r9hHtS/RbQ+E tAeZEzcLcHNzarQO1EBWlrkBJxvBNhplluy0fxWg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chaitanya Kulkarni , Christoph Hellwig , Sasha Levin Subject: [PATCH 5.10 056/102] nvme: mark nvme_setup_passsthru() inline Date: Mon, 27 Jun 2022 13:21:07 +0200 Message-Id: <20220627111935.132644776@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111933.455024953@linuxfoundation.org> References: <20220627111933.455024953@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Chaitanya Kulkarni [ Upstream commit 7a36604668b9b1f84126ef0342144ba5b07e518f ] Since nvmet_setup_passthru() function falls in fast path when called from the NVMeOF passthru backend, make it inline. Signed-off-by: Chaitanya Kulkarni Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 68395dcd067c..d81b0cff15e0 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -683,7 +683,7 @@ static void nvme_assign_write_stream(struct nvme_ctrl *ctrl, req->q->write_hints[streamid] += blk_rq_bytes(req) >> 9; } -static void nvme_setup_passthrough(struct request *req, +static inline void nvme_setup_passthrough(struct request *req, struct nvme_command *cmd) { memcpy(cmd, nvme_req(req)->cmd, sizeof(*cmd)); -- 2.35.1