From: sagi@grimberg.me (Sagi Grimberg) Date: Sun, 12 May 2019 08:26:22 -0700 Subject: [PATCH] nvme-rdma: remove redundant reference between ib_device and tagset In-Reply-To: <1557139675-2469-1-git-send-email-maxg@mellanox.com> References: <1557139675-2469-1-git-send-email-maxg@mellanox.com> Message-ID: This looks good max. On 5/6/19 3:47 AM, Max Gurtovoy wrote: > In the past, before adding f41725bb ("nvme-rdma: Use mr pool") commit, > we needed a reference on the ib_device as long as the tagset > was alive, as the MRs in the request structures needed a valid ib_device. > Now, we allocate/deallocate MR pool per QP and consume on demand. > > Also remove nvme_rdma_free_tagset function and use blk_mq_free_tag_set > instead, as it unneeded anymore. > > This commit also fixes a memory leakage and possible segmentation fault. > When configuring the system with NIC teaming (aka bonding) Question, what about sqe dma mappings? don't they need to be remapped as well?