]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: destroy nvme queue rdma resources on connect failure
authorSteve Wise <swise@opengridcomputing.com>
Fri, 2 Sep 2016 16:01:27 +0000 (09:01 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Sun, 4 Sep 2016 07:00:54 +0000 (10:00 +0300)
commit055f7c38780dc6bf574c79de00459d539622e44b
treee5365a13f3c2f56b18d1727d6adc72c29834d0e9
parentc68c19c5b714a4041fd6485da8c37e043cd475fc
nvme-rdma: destroy nvme queue rdma resources on connect failure

After address resolution, the nvme_rdma_queue rdma resources are
allocated.  If rdma route resolution or the connect fails, or the
controller reconnect times out and gives up, then the rdma resources
need to be freed.  Otherwise, rdma resources are leaked.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimbrg.me>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/rdma.c