/kernel/linux/linux-5.10/fs/ceph/ |
D | io.c | 24 lockdep_assert_held_write(&inode->i_rwsem); in ceph_block_o_direct() 56 down_read(&inode->i_rwsem); in ceph_start_io_read() 59 up_read(&inode->i_rwsem); in ceph_start_io_read() 61 down_write(&inode->i_rwsem); in ceph_start_io_read() 63 downgrade_write(&inode->i_rwsem); in ceph_start_io_read() 76 up_read(&inode->i_rwsem); in ceph_end_io_read() 89 down_write(&inode->i_rwsem); in ceph_start_io_write() 103 up_write(&inode->i_rwsem); in ceph_end_io_write() 109 lockdep_assert_held_write(&inode->i_rwsem); in ceph_block_buffered() 142 down_read(&inode->i_rwsem); in ceph_start_io_direct() [all …]
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | io.c | 47 down_read(&inode->i_rwsem); in nfs_start_io_read() 50 up_read(&inode->i_rwsem); in nfs_start_io_read() 52 down_write(&inode->i_rwsem); in nfs_start_io_read() 54 downgrade_write(&inode->i_rwsem); in nfs_start_io_read() 67 up_read(&inode->i_rwsem); in nfs_end_io_read() 80 down_write(&inode->i_rwsem); in nfs_start_io_write() 94 up_write(&inode->i_rwsem); in nfs_end_io_write() 127 down_read(&inode->i_rwsem); in nfs_start_io_direct() 130 up_read(&inode->i_rwsem); in nfs_start_io_direct() 132 down_write(&inode->i_rwsem); in nfs_start_io_direct() [all …]
|
/kernel/linux/linux-5.10/Documentation/filesystems/ |
D | directory-locking.rst | 7 kinds of locks - per-inode (->i_rwsem) and per-filesystem 10 When taking the i_rwsem on multiple non-directory objects, we 58 All ->i_rwsem are taken exclusive. Again, we might get away with locking 94 Thus all processes are blocked on ->i_rwsem.
|
D | locking.rst | 88 ops i_rwsem(inode) 113 Additionally, ->rmdir(), ->unlink() and ->rename() have ->i_rwsem 137 ops i_rwsem(inode) 269 ops PageLocked(page) i_rwsem 547 ->iterate() is called with i_rwsem exclusive. 549 ->iterate_shared() is called with i_rwsem at least shared.
|
D | path-lookup.rst | 246 inode->i_rwsem 249 ``i_rwsem`` is a read/write semaphore that serializes all changes to a particular 256 This has a complementary role to that of ``d_lock``: ``i_rwsem`` on a 259 dcache hold ``i_rwsem`` on the relevant directory inode and briefly take 262 memory pressure. This uses ``d_lock``, but ``i_rwsem`` plays no role. 268 falls back to ``lookup_slow()`` which takes a shared lock on ``i_rwsem``, checks again that 274 sometimes need to take an exclusive lock on ``i_rwsem`` before performing the last lookup so 276 to take, or not take, ``i_rwsem`` is one of the 280 name that is not yet in the dcache - the shared lock on ``i_rwsem`` will 287 ``i_rwsem``, a thread must call ``d_alloc_parallel()``. This allocates a [all …]
|
D | gfs2-glocks.rst | 116 1. i_rwsem (if required)
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_inode.c | 186 down_write_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock() 189 down_read_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock() 237 if (!down_write_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait() 240 if (!down_read_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait() 268 up_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait() 270 up_read(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait() 307 up_write(&VFS_I(ip)->i_rwsem); in xfs_iunlock() 309 up_read(&VFS_I(ip)->i_rwsem); in xfs_iunlock() 342 downgrade_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_demote() 368 lockdep_is_held_type(&VFS_I(ip)->i_rwsem, 0); in xfs_isilocked() [all …]
|
D | xfs_iops.c | 1347 lockdep_set_class(&inode->i_rwsem, in xfs_setup_inode()
|
D | xfs_icache.c | 406 ASSERT(!rwsem_is_locked(&inode->i_rwsem)); in xfs_iget_cache_hit()
|
D | xfs_super.c | 638 ASSERT(!rwsem_is_locked(&inode->i_rwsem)); in xfs_fs_destroy_inode()
|
/kernel/linux/linux-5.10/include/linux/ |
D | fs.h | 661 struct rw_semaphore i_rwsem; member 775 down_write(&inode->i_rwsem); in inode_lock() 780 up_write(&inode->i_rwsem); in inode_unlock() 785 down_read(&inode->i_rwsem); in inode_lock_shared() 790 up_read(&inode->i_rwsem); in inode_unlock_shared() 795 return down_write_trylock(&inode->i_rwsem); in inode_trylock() 800 return down_read_trylock(&inode->i_rwsem); in inode_trylock_shared() 805 return rwsem_is_locked(&inode->i_rwsem); in inode_is_locked() 810 down_write_nested(&inode->i_rwsem, subclass); in inode_lock_nested() 815 down_read_nested(&inode->i_rwsem, subclass); in inode_lock_shared_nested()
|
/kernel/linux/linux-5.10/fs/orangefs/ |
D | file.c | 351 down_read(&file_inode(iocb->ki_filp)->i_rwsem); in orangefs_file_read_iter() 358 up_read(&file_inode(iocb->ki_filp)->i_rwsem); in orangefs_file_read_iter()
|
/kernel/linux/linux-5.10/fs/configfs/ |
D | inode.c | 142 lockdep_set_class(&inode->i_rwsem, in configfs_set_inode_lock_class()
|
/kernel/linux/linux-5.10/fs/ |
D | readdir.c | 55 res = down_read_killable(&inode->i_rwsem); in iterate_dir() 57 res = down_write_killable(&inode->i_rwsem); in iterate_dir()
|
D | inode.c | 175 init_rwsem(&inode->i_rwsem); in inode_init_always() 176 lockdep_set_class(&inode->i_rwsem, &sb->s_type->i_mutex_key); in inode_init_always() 974 if (lockdep_match_class(&inode->i_rwsem, &type->i_mutex_key)) { in lockdep_annotate_inode_mutex_key() 979 init_rwsem(&inode->i_rwsem); in lockdep_annotate_inode_mutex_key() 980 lockdep_set_class(&inode->i_rwsem, in lockdep_annotate_inode_mutex_key()
|
D | dax.c | 1219 lockdep_assert_held_write(&inode->i_rwsem); in dax_iomap_rw() 1222 lockdep_assert_held(&inode->i_rwsem); in dax_iomap_rw()
|
/kernel/linux/linux-5.10/fs/overlayfs/ |
D | inode.c | 577 lockdep_set_class(&inode->i_rwsem, &ovl_i_mutex_dir_key[depth]); in ovl_lockdep_annotate_inode_mutex_key() 579 lockdep_set_class(&inode->i_rwsem, &ovl_i_mutex_key[depth]); in ovl_lockdep_annotate_inode_mutex_key()
|
D | readdir.c | 276 err = down_write_killable(&dir->d_inode->i_rwsem); in ovl_check_whiteouts()
|
/kernel/linux/linux-5.10/lib/ |
D | test_lockup.c | 532 lock_rwsem_ptr = (unsigned long)&test_inode->i_rwsem; in test_lockup_init()
|
/kernel/linux/linux-5.10/drivers/staging/android/ |
D | ashmem.c | 458 lockdep_set_class(&inode->i_rwsem, &backing_shmem_inode_class); in ashmem_mmap()
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | inode_merge.c | 602 struct rw_semaphore *sem = &root->i_rwsem; in lock_root_inode_shared()
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
D | inode.c | 247 lockdep_set_class(&inode->i_rwsem, in ocfs2_init_locked_inode()
|
/kernel/linux/linux-5.10/fs/gfs2/ |
D | ops_fstype.c | 889 lockdep_set_class(&sdp->sd_quota_inode->i_rwsem, in init_inodes()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | delayed-inode.c | 1663 downgrade_write(&inode->i_rwsem); in btrfs_readdir_put_delayed_items()
|
D | ioctl.c | 973 error = down_write_killable_nested(&dir->i_rwsem, I_MUTEX_PARENT); in btrfs_mksubvol() 3046 err = down_write_killable_nested(&dir->i_rwsem, I_MUTEX_PARENT); in btrfs_ioctl_snap_destroy()
|