/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_tlb.c | 137 mutex_lock(>->tlb.invalidate_lock); in intel_gt_invalidate_tlb_full() 156 mutex_unlock(>->tlb.invalidate_lock); in intel_gt_invalidate_tlb_full() 162 mutex_init(>->tlb.invalidate_lock); in intel_gt_init_tlb() 163 seqcount_mutex_init(>->tlb.seqno, >->tlb.invalidate_lock); in intel_gt_init_tlb() 168 mutex_destroy(>->tlb.invalidate_lock); in intel_gt_fini_tlb()
|
H A D | intel_gt_types.h | 111 struct mutex invalidate_lock; member
|
/linux/arch/powerpc/sysdev/ |
H A D | dart_iommu.c | 56 static DEFINE_SPINLOCK(invalidate_lock); 65 spin_lock_irqsave(&invalidate_lock, flags); in dart_tlb_invalidate_all() 99 spin_unlock_irqrestore(&invalidate_lock, flags); in dart_tlb_invalidate_all() 108 spin_lock_irqsave(&invalidate_lock, flags); in dart_tlb_invalidate_one() 131 spin_unlock_irqrestore(&invalidate_lock, flags); in dart_tlb_invalidate_one()
|
/linux/fs/xfs/ |
H A D | xfs_inode.c | 156 down_write_nested(&VFS_I(ip)->i_mapping->invalidate_lock, in xfs_ilock() 159 down_read_nested(&VFS_I(ip)->i_mapping->invalidate_lock, in xfs_ilock() 199 if (!down_write_trylock(&VFS_I(ip)->i_mapping->invalidate_lock)) in xfs_ilock_nowait() 202 if (!down_read_trylock(&VFS_I(ip)->i_mapping->invalidate_lock)) in xfs_ilock_nowait() 217 up_write(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_ilock_nowait() 219 up_read(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_ilock_nowait() 254 up_write(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_iunlock() 256 up_read(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_iunlock() 282 downgrade_write(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_ilock_demote() 304 rwsem_assert_held(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_assert_ilocked() [all …]
|
H A D | xfs_iomap.c | 1245 rwsem_assert_held_write(&inode->i_mapping->invalidate_lock); in xfs_buffered_write_iomap_end()
|
/linux/Documentation/filesystems/ |
H A D | locking.rst | 276 ops folio locked i_rwsem invalidate_lock 378 invalidate_lock before invalidating page cache in truncate / hole punch 593 cache contents from the disk. Since VFS acquires mapping->invalidate_lock in 595 readahead paths), the fallocate implementation must take the invalidate_lock to 602 operation, the filesystem must take mapping->invalidate_lock to coordinate 668 truncated and/or invalidated, then the filesystem must lock invalidate_lock, 669 then ensure the page is not already truncated (invalidate_lock will block 693 mapping->invalidate_lock is suitable for proper serialization. If the page has
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | gmc_v11_0.c | 244 spin_lock(&adev->gmc.invalidate_lock); in gmc_v11_0_flush_gpu_tlb() 295 spin_unlock(&adev->gmc.invalidate_lock); in gmc_v11_0_flush_gpu_tlb() 741 spin_lock_init(&adev->gmc.invalidate_lock); in gmc_v11_0_sw_init()
|
H A D | gmc_v12_0.c | 213 spin_lock(&adev->gmc.invalidate_lock); in gmc_v12_0_flush_vm_hub() 272 spin_unlock(&adev->gmc.invalidate_lock); in gmc_v12_0_flush_vm_hub() 743 spin_lock_init(&adev->gmc.invalidate_lock); in gmc_v12_0_sw_init()
|
H A D | gmc_v10_0.c | 283 spin_lock(&adev->gmc.invalidate_lock); in gmc_v10_0_flush_gpu_tlb() 329 spin_unlock(&adev->gmc.invalidate_lock); in gmc_v10_0_flush_gpu_tlb() 781 spin_lock_init(&adev->gmc.invalidate_lock); in gmc_v10_0_sw_init()
|
H A D | amdgpu_gmc.h | 291 spinlock_t invalidate_lock; member
|
H A D | gmc_v9_0.c | 866 spin_lock(&adev->gmc.invalidate_lock); in gmc_v9_0_flush_gpu_tlb() 928 spin_unlock(&adev->gmc.invalidate_lock); in gmc_v9_0_flush_gpu_tlb() 2000 spin_lock_init(&adev->gmc.invalidate_lock); in gmc_v9_0_sw_init()
|
/linux/Documentation/filesystems/iomap/ |
H A D | operations.rst | 106 ``i_rwsem`` or ``invalidate_lock`` and updates mapping information. 198 Callers commonly take the mmap ``invalidate_lock`` in shared or 214 It takes the ``invalidate_lock``. 231 Callers typically hold ``i_rwsem`` and ``invalidate_lock`` in exclusive 242 Callers typically hold ``i_rwsem`` and ``invalidate_lock`` in exclusive 255 Callers typically hold ``i_rwsem`` and ``invalidate_lock`` in exclusive 269 It does not lock ``i_rwsem`` or ``invalidate_lock``.
|
H A D | design.rst | 117 * ``invalidate_lock``: The pagecache ``struct address_space``
|
/linux/include/linux/ |
H A D | fs.h | 468 struct rw_semaphore invalidate_lock; member 860 down_write(&mapping->invalidate_lock); in filemap_invalidate_lock() 865 up_write(&mapping->invalidate_lock); in filemap_invalidate_unlock() 870 down_read(&mapping->invalidate_lock); in filemap_invalidate_lock_shared() 876 return down_read_trylock(&mapping->invalidate_lock); in filemap_invalidate_trylock_shared() 882 up_read(&mapping->invalidate_lock); in filemap_invalidate_unlock_shared()
|
/linux/mm/ |
H A D | filemap.c | 1029 down_write(&mapping1->invalidate_lock); in filemap_invalidate_lock_two() 1031 down_write_nested(&mapping2->invalidate_lock, 1); in filemap_invalidate_lock_two() 1047 up_write(&mapping1->invalidate_lock); in filemap_invalidate_unlock_two() 1049 up_write(&mapping2->invalidate_lock); in filemap_invalidate_unlock_two()
|
/linux/fs/ |
H A D | inode.c | 217 init_rwsem(&mapping->invalidate_lock); in inode_init_always_gfp() 218 lockdep_set_class_and_name(&mapping->invalidate_lock, in inode_init_always_gfp()
|
/linux/drivers/md/ |
H A D | dm-cache-target.c | 1521 static int invalidate_lock(struct dm_cache_migration *mg) in invalidate_lock() function 1571 return invalidate_lock(mg); in invalidate_start()
|
/linux/fs/ext2/ |
H A D | inode.c | 1177 WARN_ON(!rwsem_is_locked(&inode->i_mapping->invalidate_lock)); in __ext2_truncate_blocks()
|
/linux/fs/iomap/ |
H A D | buffered-io.c | 1219 lockdep_assert_held_write(&inode->i_mapping->invalidate_lock); in iomap_write_delalloc_release()
|
/linux/fs/btrfs/ |
H A D | free-space-cache.c | 1015 lockdep_set_class(&(&inode->i_data)->invalidate_lock, in load_free_space_cache()
|
/linux/fs/ext4/ |
H A D | inode.c | 3885 if (WARN_ON_ONCE(!rwsem_is_locked(&inode->i_mapping->invalidate_lock))) in ext4_break_layouts()
|