Jason Gunthorpe f553246f7f RDMA/core: Change how failing destroy is handled during uobj abort
Currently it triggers a WARN_ON and then goes ahead and destroys the
uobject anyhow, leaking any driver memory.

The only place that leaks driver memory should be during FD close() in
uverbs_destroy_ufile_hw().

Drivers are only allowed to fail destroy uobjects if they guarantee
destroy will eventually succeed. uverbs_destroy_ufile_hw() provides the
loop to give the driver that chance.

Link: https://lore.kernel.org/r/20200902081708.746631-1-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-09-09 13:16:48 -03:00
..
2020-08-03 20:37:22 -07:00
2020-08-25 11:00:02 +02:00
2020-08-31 12:28:12 -03:00
2020-08-07 13:00:53 -07:00
2020-08-18 15:58:53 -07:00
2020-08-31 12:28:12 -03:00
2020-08-31 12:28:12 -03:00
2020-08-29 12:44:30 -07:00