Home
last modified time | relevance | path

Searched refs:vma_lock (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/mm/
Dhugetlb.c268 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_lock_read() local
270 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() local
283 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() local
296 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() local
309 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() local
323 return down_write_trylock(&vma_lock->rw_sema); in hugetlb_vma_trylock_write()
[all …]
/linux-6.6.21/drivers/vfio/pci/
Dvfio_pci_core.c1622 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 …]
/linux-6.6.21/fs/hugetlbfs/
Dinode.c499 struct hugetlb_vma_lock *vma_lock; in hugetlb_unmap_file_folio() local
511 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()
/linux-6.6.21/include/linux/
Dvfio_pci_core.h96 struct mutex vma_lock; member
Dmm_types.h549 struct vma_lock { struct
607 struct vma_lock *vm_lock;
Dhugetlb.h1279 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_walk() local
1289 WARN_ON_ONCE(!lockdep_is_held(&vma_lock->rw_sema) && in hugetlb_walk()
/linux-6.6.21/kernel/
Dfork.c3298 vma_lock_cachep = KMEM_CACHE(vma_lock, SLAB_PANIC|SLAB_ACCOUNT); in proc_caches_init()