On Tue, Aug 25, 2020 at 10:44:28AM -0300, Jason Gunthorpe wrote: > > There is no way to propagate them on process cleanup, but the destroy verbs have > > a return code all the way back to libibverbs, which we can use for error > > propagation. > > It is sort of OK for a driver to fail during RDMA_REMOVE_DESTROY. > > All other reason codes must eventually succeed. Actually 'eventually succeed' is not even quite right There are situations where a driver object will be created and then destroyed during error unwind of the syscall eg via RDMA_REMOVE_ABORT_HWOBJ In which case, again, destroy must succeed or memory gets leaked and a WARN_ON trigger. This might be a problem still in the devx stuff :\ Jason