aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/nvmet.h
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2018-09-28 15:40:43 -0700
committerChristoph Hellwig <hch@lst.de>2018-10-01 14:16:13 -0700
commit73383adfad245bb84e6d6ef7830f01048fcfc217 (patch)
treebd1c2975f84686cc1f5cbbddceddd080fcfdf4e9 /drivers/nvme/target/nvmet.h
parentnvme: call nvme_complete_rq when nvmf_check_ready fails for mpath I/O (diff)
downloadlinux-dev-73383adfad245bb84e6d6ef7830f01048fcfc217.tar.xz
linux-dev-73383adfad245bb84e6d6ef7830f01048fcfc217.zip
nvmet: don't split large I/Os unconditionally
If we know that the I/O size exceeds our inline bio vec, no point using it and split the rest to begin with. We could in theory reuse the inline bio and only allocate the bio_vec, but its really not worth optimizing for. Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
-rw-r--r--drivers/nvme/target/nvmet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h
index ec9af4ee03b6..08f7b57a1203 100644
--- a/drivers/nvme/target/nvmet.h
+++ b/drivers/nvme/target/nvmet.h
@@ -264,6 +264,7 @@ struct nvmet_fabrics_ops {
};
#define NVMET_MAX_INLINE_BIOVEC 8
+#define NVMET_MAX_INLINE_DATA_LEN NVMET_MAX_INLINE_BIOVEC * PAGE_SIZE
struct nvmet_req {
struct nvme_command *cmd;