On 12/7/2018 1:25 PM, Jason Gunthorpe wrote: > I don't like messing with module refcount to solve a locking problem.. > Here something like this compile-tested thing.. > > Instead of implementing dellink as a function call implement it as a > flag 'ALLOW_USER_UNREGISTER'. The core code simply calls > ib_unregister_device_and_put() upon dellink. > Why don't we just mandate that if a driver uses rdma_link_ops, then it must support the core doing the ib_unregister_device_and_put() on a DELLINK nlmsg? Steve.