nvmet: don't split large I/Os unconditionally
authorSagi Grimberg <sagi@grimberg.me>
Fri, 28 Sep 2018 22:40:43 +0000 (15:40 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 1 Oct 2018 21:16:13 +0000 (14:16 -0700)
commit73383adfad245bb84e6d6ef7830f01048fcfc217
treebd1c2975f84686cc1f5cbbddceddd080fcfdf4e9
parent783f4a4408e1251d17f333ad56abac24dde988b9
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>
drivers/nvme/target/io-cmd-bdev.c
drivers/nvme/target/nvmet.h