nvme: add a helper to initialize connect_q
authorChaitanya Kulkarni <kch@nvidia.com>
Thu, 10 Feb 2022 19:12:36 +0000 (11:12 -0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 28 Feb 2022 11:45:06 +0000 (13:45 +0200)
commit776265687bc77831357f07d563c39c3fdb63ec82
tree1d141e599fc6dbd614303baef1c489cc4d22f683
parentce9cf82b45b23f1923fa93295992ee6f31c02859
nvme: add a helper to initialize connect_q

Add and use helper to remove duplicate code for fabrics connect_q
initialization and error handling for all the transports.

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c
drivers/nvme/host/nvme.h
drivers/nvme/host/rdma.c
drivers/nvme/host/tcp.c
drivers/nvme/target/loop.c