[PATCH 0/9] nvme: add helpers and remove duplicate code

Chaitanya Kulkarni chaitanyak at nvidia.com
Fri Jan 28 01:20:06 PST 2022


From: Chaitanya Kulkarni <kch at nvidia.com>

HI,

Instead of opencoding connect_q initialization/error handling and the
initialization of the admin tagset, add common helpers to remove the
ducplicate code in different transports.

-ck

Chaitanya Kulkarni (9):
  nvme-fc: add a helper to initialize connect_q
  nvme-rdma: use helper to initialize connect_q
  nvme-tcp: use helper to initialize connect_q
  nvme-loop: use helper to initialize connect_q
  nvme-fc: centralize admin tagset initialization
  nvme-pci: use helper for tagset initialization
  nvme-rdma: use helper for tagset initialization
  nvme-tcp: use helper for tagset initialization
  nvme-loop: use helper for tagset initialization

 drivers/nvme/host/fc.c     | 18 +++++-------------
 drivers/nvme/host/nvme.h   | 25 +++++++++++++++++++++++++
 drivers/nvme/host/pci.c    | 11 +++--------
 drivers/nvme/host/rdma.c   | 19 ++++++-------------
 drivers/nvme/host/tcp.c    | 18 +++++-------------
 drivers/nvme/target/loop.c | 19 ++++++-------------
 6 files changed, 50 insertions(+), 60 deletions(-)

-- 
2.29.0




More information about the Linux-nvme mailing list