Jason Gunthorpe 7452a3c745 IB/uverbs: Allow RDMA_REMOVE_DESTROY to work concurrently with disassociate
After all the recent structural changes this is now straightfoward, hoist
the hw_destroy_rwsem up out of rdma_destroy_explicit and wrap it around
the uobject write lock as well as the destroy.

This is necessary as obtaining a write lock concurrently with
uverbs_destroy_ufile_hw() will cause malfunction.

After this change none of the destroy callbacks require the
disassociate_srcu lock to be correct.

This requires introducing a new lookup mode, UVERBS_LOOKUP_DESTROY as the
IOCTL interface needs to hold an unlocked kref until all command
verification is completed.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-08-01 14:55:48 -06:00
..
2018-07-30 20:49:04 -06:00
2015-06-12 14:49:18 -04:00
2018-06-12 16:19:22 -07:00
2018-06-18 11:22:54 -06:00
2018-06-04 08:48:11 -06:00
2016-05-13 13:37:18 -04:00
2016-03-03 10:20:25 -05:00
2018-03-29 13:42:29 -06:00
2016-03-03 10:20:25 -05:00