On Thu, Jan 17, 2019 at 09:06:57PM +0200, Shamir Rabinovitch wrote: > This patch continue the cleanup started with Jason RFC patch. This patch > clean only the ib_xxx creation APIs beacuse those APIs do have ib_udata. > > The final goal of this cleanup is to remove the dependency in the IB > code in the ib_xxx->uobject pointer as step toward shared ib_xxx > objects. > > Seperate patch will be sent for the ib_xxx deletion APIs which do not > have the ib_udata. For those the solution will have to be different. This is a problem too - we should probably figure it out before moving too much further ahead. The delete APIs can be called from any ucontext that has the shared object, and it seems like many drivers require the destroy's ucontext to match the create ucontext.. What is the plan here? Ban drivers from sharing that are like this? Jason