On Wed, May 08, 2019 at 03:15:59PM +0000, Bernard Metzler wrote: > Without questioning the concept here, moving allocation and freeing > of core resources to the mid layer may induce complex changes at > driver level. Especially for a SW driver, which references those > objects on the fast path. It usually doesn't make sense to keep referencing a deleted QP in the 'fast path'. Again the usual approach is to build some kind of fence in the destory function that guarantees the fast path is done referencing the QP and then let destroy complete. Otherwise there are almost certainly going to be bugs with referencing a destroyed but not freed QP all over the place. Jason