]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1679d04eddd90d39e0d689088a8b1e47407b3a8d
treebd1c2975f84686cc1f5cbbddceddd080fcfdf4e9
parent1cc013f7f0f466752876930842dc76d824a81ee2
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