[PATCH V4 0/6] nvmet: passthru improvements

Chaitanya Kulkarni chaitanya.kulkarni at wdc.com
Mon Nov 9 21:23:59 EST 2020


Hi,

This patch series has several small trivial cleanups and few code
optimizations.

Due to conflicting nature of patches I've generated this series on the
top of timeout [1].

Regards,
Chaitanya

[1] http://lists.infradead.org/pipermail/linux-nvme/2020-November/020797.html

Changes from V3:-

1. Simplify nvme_alloc_request() and nvme_alloc_request_qid().
2. Add helpers which are used by request alloc functions.
3. Rebase and retest the code.
4. Only init bio_end_io for bio_alloc() case in passthru.
5. Add reviewed-by tags.

Changes from V2:-

1. Remove "nvme-core: annotate nvme_alloc_request()" patch and
   split the nvme_alloc_request() into nvme_alloc_request_qid_any()
   and nvme_alloc_request_qid() with addition of the prep patch for
   the same.
2. Remove the cleanup patches and trim down the series.
3. Remove the code for setting up the op_flags for passthru.  
4. Rebase and retest on the nvme-5.10.

Changes from V1:-

1. Remove the sg_cnt check and nvmet_passthru_sg_map() annotation.
2. Add annotations and performance numbers for newly added patch #1.
3. Move ctrl refcount and module refcount into nvme_dev_open() and
   nvme_dev_release(). Add prepration patch for the same.
4. Add reviewed-by tags.

Chaitanya Kulkarni (6):
  nvme-core: add req init helpers
  nvme-core: split nvme_alloc_request()
  nvmet: remove op_flags for passthru commands
  block: move blk_rq_bio_prep() to linux/blk-mq.h
  nvmet: use minimized version of blk_rq_append_bio
  nvmet: use inline bio for passthru fast path

 block/blk.h                    | 12 ------
 drivers/nvme/host/core.c       | 67 ++++++++++++++++++++++++----------
 drivers/nvme/host/lightnvm.c   |  5 +--
 drivers/nvme/host/nvme.h       |  2 +
 drivers/nvme/host/pci.c        |  4 +-
 drivers/nvme/target/nvmet.h    |  1 +
 drivers/nvme/target/passthru.c | 30 +++++++--------
 include/linux/blk-mq.h         | 12 ++++++
 8 files changed, 79 insertions(+), 54 deletions(-)

-- 
2.22.1




More information about the Linux-nvme mailing list