Searched refs:vma_lock (Results 1 – 4 of 4) sorted by relevance
272 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_lock_read() local274 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()290 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_lock_write() local292 down_write(&vma_lock->rw_sema); in hugetlb_vma_lock_write()299 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_unlock_write() local301 up_write(&vma_lock->rw_sema); in hugetlb_vma_unlock_write()307 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_trylock_write() local312 return down_write_trylock(&vma_lock->rw_sema); in hugetlb_vma_trylock_write()[all …]
1551 if (!mutex_trylock(&vdev->vma_lock)) in vfio_pci_zap_and_vma_lock()1554 mutex_lock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()1570 mutex_unlock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()1581 if (!mutex_trylock(&vdev->vma_lock)) { in vfio_pci_zap_and_vma_lock()1587 mutex_lock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()1602 mutex_unlock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()1612 mutex_unlock(&vdev->vma_lock); in vfio_pci_zap_and_down_write_memory_lock()1664 mutex_lock(&vdev->vma_lock); in vfio_pci_mmap_close()1672 mutex_unlock(&vdev->vma_lock); in vfio_pci_mmap_close()1682 mutex_lock(&vdev->vma_lock); in vfio_pci_mmap_fault()[all …]
443 struct hugetlb_vma_lock *vma_lock; in hugetlb_unmap_file_folio() local455 vma_lock = NULL; in hugetlb_unmap_file_folio()464 vma_lock = vma->vm_private_data; in hugetlb_unmap_file_folio()472 kref_get(&vma_lock->refs); in hugetlb_unmap_file_folio()483 if (vma_lock) { in hugetlb_unmap_file_folio()489 down_write(&vma_lock->rw_sema); in hugetlb_unmap_file_folio()492 vma = vma_lock->vma; in hugetlb_unmap_file_folio()499 up_write(&vma_lock->rw_sema); in hugetlb_unmap_file_folio()500 kref_put(&vma_lock->refs, hugetlb_vma_lock_release); in hugetlb_unmap_file_folio()515 kref_put(&vma_lock->refs, hugetlb_vma_lock_release); in hugetlb_unmap_file_folio()
96 struct mutex vma_lock; member