Home
last modified time | relevance | path

Searched refs:invalidate_lock (Results 1 – 21 of 21) sorted by relevance

/linux/drivers/gpu/drm/i915/gt/
H A Dintel_tlb.c137 mutex_lock(&gt->tlb.invalidate_lock); in intel_gt_invalidate_tlb_full()
156 mutex_unlock(&gt->tlb.invalidate_lock); in intel_gt_invalidate_tlb_full()
162 mutex_init(&gt->tlb.invalidate_lock); in intel_gt_init_tlb()
163 seqcount_mutex_init(&gt->tlb.seqno, &gt->tlb.invalidate_lock); in intel_gt_init_tlb()
168 mutex_destroy(&gt->tlb.invalidate_lock); in intel_gt_fini_tlb()
H A Dintel_gt_types.h111 struct mutex invalidate_lock; member
/linux/arch/powerpc/sysdev/
H A Ddart_iommu.c56 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 Dxfs_inode.c156 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 Dxfs_iomap.c1245 rwsem_assert_held_write(&inode->i_mapping->invalidate_lock); in xfs_buffered_write_iomap_end()
/linux/Documentation/filesystems/
H A Dlocking.rst276 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 Dgmc_v11_0.c244 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 Dgmc_v12_0.c213 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 Dgmc_v10_0.c283 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 Damdgpu_gmc.h291 spinlock_t invalidate_lock; member
H A Dgmc_v9_0.c866 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 Doperations.rst106 ``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 Ddesign.rst117 * ``invalidate_lock``: The pagecache ``struct address_space``
/linux/include/linux/
H A Dfs.h468 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 Dfilemap.c1029 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 Dinode.c217 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 Ddm-cache-target.c1521 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 Dinode.c1177 WARN_ON(!rwsem_is_locked(&inode->i_mapping->invalidate_lock)); in __ext2_truncate_blocks()
/linux/fs/iomap/
H A Dbuffered-io.c1219 lockdep_assert_held_write(&inode->i_mapping->invalidate_lock); in iomap_write_delalloc_release()
/linux/fs/btrfs/
H A Dfree-space-cache.c1015 lockdep_set_class(&(&inode->i_data)->invalidate_lock, in load_free_space_cache()
/linux/fs/ext4/
H A Dinode.c3885 if (WARN_ON_ONCE(!rwsem_is_locked(&inode->i_mapping->invalidate_lock))) in ext4_break_layouts()