projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44ef561
)
nvme: mark nvme_setup_passsthru() inline
author
Chaitanya Kulkarni
<chaitanya.kulkarni@wdc.com>
Mon, 1 Mar 2021 02:06:06 +0000
(18:06 -0800)
committer
Christoph Hellwig
<hch@lst.de>
Fri, 2 Apr 2021 16:48:26 +0000
(18:48 +0200)
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>
drivers/nvme/host/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/core.c
b/drivers/nvme/host/core.c
index ce16d24ffdce0ec542949ef496a90c6bf9d0ce68..aa7b03290cefb7a978b0e00139dbd91a03d319a1 100644
(file)
--- a/
drivers/nvme/host/core.c
+++ b/
drivers/nvme/host/core.c
@@
-726,7
+726,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));