Searched refs:vma_lock (Results 1 – 7 of 7) sorted by relevance
268 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_lock_read() local270 down_read(&vma_lock->rw_sema); in hugetlb_vma_lock_read()281 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_unlock_read() local283 up_read(&vma_lock->rw_sema); in hugetlb_vma_unlock_read()294 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_lock_write() local296 down_write(&vma_lock->rw_sema); in hugetlb_vma_lock_write()307 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_unlock_write() local309 up_write(&vma_lock->rw_sema); in hugetlb_vma_unlock_write()321 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_trylock_write() local323 return down_write_trylock(&vma_lock->rw_sema); in hugetlb_vma_trylock_write()[all …]
1622 if (!mutex_trylock(&vdev->vma_lock)) in vfio_pci_zap_and_vma_lock()1625 mutex_lock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()1641 mutex_unlock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()1652 if (!mutex_trylock(&vdev->vma_lock)) { in vfio_pci_zap_and_vma_lock()1658 mutex_lock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()1673 mutex_unlock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()1683 mutex_unlock(&vdev->vma_lock); in vfio_pci_zap_and_down_write_memory_lock()1735 mutex_lock(&vdev->vma_lock); in vfio_pci_mmap_close()1743 mutex_unlock(&vdev->vma_lock); in vfio_pci_mmap_close()1753 mutex_lock(&vdev->vma_lock); in vfio_pci_mmap_fault()[all …]
499 struct hugetlb_vma_lock *vma_lock; in hugetlb_unmap_file_folio() local511 vma_lock = NULL; in hugetlb_unmap_file_folio()520 vma_lock = vma->vm_private_data; in hugetlb_unmap_file_folio()528 kref_get(&vma_lock->refs); in hugetlb_unmap_file_folio()539 if (vma_lock) { in hugetlb_unmap_file_folio()545 down_write(&vma_lock->rw_sema); in hugetlb_unmap_file_folio()548 vma = vma_lock->vma; in hugetlb_unmap_file_folio()555 up_write(&vma_lock->rw_sema); in hugetlb_unmap_file_folio()556 kref_put(&vma_lock->refs, hugetlb_vma_lock_release); in hugetlb_unmap_file_folio()570 kref_put(&vma_lock->refs, hugetlb_vma_lock_release); in hugetlb_unmap_file_folio()
96 struct mutex vma_lock; member
549 struct vma_lock { struct607 struct vma_lock *vm_lock;
1279 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_walk() local1289 WARN_ON_ONCE(!lockdep_is_held(&vma_lock->rw_sema) && in hugetlb_walk()
3298 vma_lock_cachep = KMEM_CACHE(vma_lock, SLAB_PANIC|SLAB_ACCOUNT); in proc_caches_init()