On Fri, Jun 14, 2019 at 09:16:15AM +0800, oulijun wrote: > Hi, Jason Gunthorpe & Leon Romanovsky& Parav Pandit > Recently when I was learning kernel ofed code, I found an interesting thing about verbs, the implementation rely on > roce driver, taking ib_dereg_mr for example. > > When the driver returns error, the reference count of rdma > resource(pd, mr, etc.) won't be decreased. I worried that it will > cause a memory leak. The object was not destroyed, the caller has to try again. Jason