Searched refs:hw_destroy_rwsem (Results 1 – 4 of 4) sorted by relevance
106 * This must be called with the hw_destroy_rwsem locked for read or write,111 * For RDMA_REMOVE_ABORT, the hw_destroy_rwsem is not required to be held,130 lockdep_assert_held(&ufile->hw_destroy_rwsem); in uverbs_destroy_uobject() 199 down_read(&ufile->hw_destroy_rwsem); in uobj_destroy() 212 up_read(&ufile->hw_destroy_rwsem); in uobj_destroy() 501 * The hw_destroy_rwsem is held across the entire object creation and in rdma_alloc_begin_uobject() 505 if (!down_read_trylock(&ufile->hw_destroy_rwsem)) in rdma_alloc_begin_uobject() 510 up_read(&ufile->hw_destroy_rwsem); in rdma_alloc_begin_uobject() 635 up_read(&ufile->hw_destroy_rwsem); in rdma_alloc_commit_uobject() 650 up_read(&ufile->hw_destroy_rwsem); in rdma_alloc_abort_uobject() [all...]
706 if (!down_read_trylock(&ufile->hw_destroy_rwsem)) in rdma_umap_open()719 up_read(&ufile->hw_destroy_rwsem); in rdma_umap_open()723 up_read(&ufile->hw_destroy_rwsem); in rdma_umap_open()763 lockdep_assert_held(&ufile->hw_destroy_rwsem); in uverbs_user_mmap_disassociate()877 init_rwsem(&file->hw_destroy_rwsem); in ib_uverbs_open()
158 struct rw_semaphore hw_destroy_rwsem; member
243 if (!down_read_trylock(&file->hw_destroy_rwsem)) in ib_init_ucontext()263 up_read(&file->hw_destroy_rwsem); in ib_init_ucontext()269 up_read(&file->hw_destroy_rwsem); in ib_init_ucontext()