diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2018-09-28 15:40:43 -0700 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-10-01 14:16:13 -0700 |
commit | 73383adfad245bb84e6d6ef7830f01048fcfc217 (patch) | |
tree | bd1c2975f84686cc1f5cbbddceddd080fcfdf4e9 /drivers/nvme/target/nvmet.h | |
parent | 783f4a4408e1251d17f333ad56abac24dde988b9 (diff) |
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.h | 1 |
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; |