Skip to content

SGL alloc and free helper functions for requests

Logan Gunthorpe linux-nvme lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4nvmet: Introduce helper functions to allocate and free request SGLsdrivers/nvme/target/core.c drivers/nvme/target/nvmet.h+18 -00 replies
2/4nvmet-rdma: Use new SGL alloc/free helper for requestsdrivers/nvme/target/rdma.c+12 -82 replies
3/4nvmet-fc: Don't use the count returned by the dma_map_sg calldrivers/nvme/target/fc.c+7 -47 replies
4/4nvmet-fc: Use new SGL alloc/free helper for requestsdrivers/nvme/target/fc.c+11 -274 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchSagi Grimberg
1/4
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] SGL alloc and free helper functions for requests

Hey,

These patches are going to be part of the P2PDMA patchset I'm working on. The change was suggested by Christoph. I just wanted to get the NVMe community's initial feedback on them seperate from our main patchset.

That is, except for patch 0003 which I'm pretty sure is a valid bug fix but it needs review.

I also can not test the fibre channel changes as I do not have hardware so I'd also appreciate it if someone can test it out.

If you need more context the commit which modifies these to support P2P is [1]. This will likely be posted as the next version of the P2PDMA patchset in the next cycle.

Thanks,

Logan

[1] https://github.com/sbates130272/linux-p2pmem/commit/4e57ff23d5ccc4687ac8eb567df1d4d15bf50254

Logan Gunthorpe (4):
nvmet: Introduce helper functions to allocate and free request SGLs
nvmet-rdma: Use new SGL alloc/free helper for requests
nvmet-fc: Don't use the count returned by the dma_map_sg call
nvmet-fc: Use new SGL alloc/free helper for requests

 drivers/nvme/target/core.c  | 16 ++++++++++++++++
 drivers/nvme/target/fc.c    | 45 ++++++++++++++++-----------------------------
 drivers/nvme/target/nvmet.h |  2 ++
 drivers/nvme/target/rdma.c  | 20 ++++++++++++--------
 4 files changed, 46 insertions(+), 37 deletions(-)

--
2.11.0