[RFC PATCH 0/5] nvme: reduce repetitive calls in fast path
Chaitanya Kulkarni
chaitanya.kulkarni at wdc.com
Mon Jul 6 19:15:19 EDT 2020
Hi Christoph/James/Keith/Sagi,
While reviewing other patch-series I found that there are repetitive
calls to blk_rq_nr_phys_segments() in the fast path for NVMe Transports
(pci, rdma, fc, loop). We should try and avoid as many repetitive checks
in the fast-path as possible.
This patch-series reduces multiple calls and minimizes the repetitive
checks in blk_rq_nr_phys_segments() for NVMe transports.
P.S. Tagging it as an RFC since I've not tested rdma/tcp/fc part, if we
agree to get this in I'll put more effort in testing.
Regards,
Chaitanya
Chaitanya Kulkarni (5):
nvme-pci: reduce blk_rq_nr_phys_segments calls
nvme-rdma: reduce blk_rq_nr_phys_segments calls
nvme-tcp: reduce blk_rq_nr_phys_segments calls
nvme-fc: reduce blk_rq_nr_phys_segments calls
nvme-loop: reduce blk_rq_nr_phys_segments calls
drivers/nvme/host/fc.c | 20 ++++++++++----------
drivers/nvme/host/pci.c | 18 ++++++++++--------
drivers/nvme/host/rdma.c | 8 ++++----
drivers/nvme/host/tcp.c | 10 +++++-----
drivers/nvme/target/loop.c | 6 +++---
5 files changed, 32 insertions(+), 30 deletions(-)
--
2.22.0
More information about the Linux-nvme
mailing list