summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2021-02-28 18:06:06 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-29 08:59:49 +0200
commite7ccaa1abacf6f8b4fe4e0a06cbb9e2051a4d79e (patch)
tree4a543ebd023a975c22ecd2a410c125d8e2a2a839
parent3ee62a1f0701ab55370f84a8a786c7ae9ae029e4 (diff)
downloadlinux-e7ccaa1abacf6f8b4fe4e0a06cbb9e2051a4d79e.tar.gz
linux-e7ccaa1abacf6f8b4fe4e0a06cbb9e2051a4d79e.tar.bz2
linux-e7ccaa1abacf6f8b4fe4e0a06cbb9e2051a4d79e.zip
nvme: mark nvme_setup_passsthru() inline
[ 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 <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/nvme/host/core.c2
1 files changed, 1 insertions, 1 deletions
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));