/Linux-v5.4/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 …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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) 268 ops PageLocked(page) i_rwsem 546 ->iterate() is called with i_rwsem exclusive. 548 ->iterate_shared() is called with i_rwsem at least shared.
|
D | path-lookup.rst | 238 inode->i_rwsem 241 ``i_rwsem`` is a read/write semaphore that serializes all changes to a particular 248 This has a complementary role to that of ``d_lock``: ``i_rwsem`` on a 251 dcache hold ``i_rwsem`` on the relevant directory inode and briefly take 254 memory pressure. This uses ``d_lock``, but ``i_rwsem`` plays no role. 260 falls back to ``lookup_slow()`` which takes a shared lock on ``i_rwsem``, checks again that 266 sometimes need to take an exclusive lock on ``i_rwsem`` before performing the last lookup so 268 to take, or not take, ``i_rwsem`` is one of the 272 name that is not yet in the dcache - the shared lock on ``i_rwsem`` will 279 ``i_rwsem``, a thread must call ``d_alloc_parallel()``. This allocates a [all …]
|
D | gfs2-glocks.txt | 103 1. i_rwsem (if required)
|
D | porting.rst | 669 ->i_mutex is replaced with ->i_rwsem now. inode_lock() et.al. work as
|
/Linux-v5.4/fs/xfs/ |
D | xfs_inode.c | 180 down_write_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock() 183 down_read_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock() 231 if (!down_write_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait() 234 if (!down_read_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait() 262 up_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait() 264 up_read(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait() 301 up_write(&VFS_I(ip)->i_rwsem); in xfs_iunlock() 303 up_read(&VFS_I(ip)->i_rwsem); in xfs_iunlock() 336 downgrade_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_demote() 362 lockdep_is_held_type(&VFS_I(ip)->i_rwsem, 0); in xfs_isilocked() [all …]
|
D | xfs_icache.c | 455 ASSERT(!rwsem_is_locked(&inode->i_rwsem)); in xfs_iget_cache_hit() 456 init_rwsem(&inode->i_rwsem); in xfs_iget_cache_hit()
|
D | xfs_iops.c | 1290 lockdep_set_class(&inode->i_rwsem, in xfs_setup_inode()
|
D | xfs_super.c | 934 ASSERT(!rwsem_is_locked(&inode->i_rwsem)); in xfs_fs_destroy_inode()
|
/Linux-v5.4/fs/orangefs/ |
D | file.c | 331 down_read(&file_inode(iocb->ki_filp)->i_rwsem); in orangefs_file_read_iter() 338 up_read(&file_inode(iocb->ki_filp)->i_rwsem); in orangefs_file_read_iter()
|
/Linux-v5.4/include/linux/ |
D | fs.h | 678 struct rw_semaphore i_rwsem; member 791 down_write(&inode->i_rwsem); in inode_lock() 796 up_write(&inode->i_rwsem); in inode_unlock() 801 down_read(&inode->i_rwsem); in inode_lock_shared() 806 up_read(&inode->i_rwsem); in inode_unlock_shared() 811 return down_write_trylock(&inode->i_rwsem); in inode_trylock() 816 return down_read_trylock(&inode->i_rwsem); in inode_trylock_shared() 821 return rwsem_is_locked(&inode->i_rwsem); in inode_is_locked() 826 down_write_nested(&inode->i_rwsem, subclass); in inode_lock_nested() 831 down_read_nested(&inode->i_rwsem, subclass); in inode_lock_shared_nested()
|
/Linux-v5.4/fs/ |
D | inode.c | 174 init_rwsem(&inode->i_rwsem); in inode_init_always() 175 lockdep_set_class(&inode->i_rwsem, &sb->s_type->i_mutex_key); in inode_init_always() 962 if (lockdep_match_class(&inode->i_rwsem, &type->i_mutex_key)) { in lockdep_annotate_inode_mutex_key() 967 init_rwsem(&inode->i_rwsem); in lockdep_annotate_inode_mutex_key() 968 lockdep_set_class(&inode->i_rwsem, in lockdep_annotate_inode_mutex_key()
|
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 | dax.c | 1204 lockdep_assert_held_write(&inode->i_rwsem); in dax_iomap_rw() 1207 lockdep_assert_held(&inode->i_rwsem); in dax_iomap_rw()
|
D | dcache.c | 2963 m2 = &alias->d_parent->d_inode->i_rwsem; in __d_unalias()
|
/Linux-v5.4/fs/configfs/ |
D | inode.c | 145 lockdep_set_class(&inode->i_rwsem, in configfs_set_inode_lock_class()
|
/Linux-v5.4/fs/overlayfs/ |
D | inode.c | 540 lockdep_set_class(&inode->i_rwsem, &ovl_i_mutex_dir_key[depth]); in ovl_lockdep_annotate_inode_mutex_key() 542 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()
|
/Linux-v5.4/fs/iomap/ |
D | direct-io.c | 407 lockdep_assert_held(&inode->i_rwsem); in iomap_dio_rw()
|
/Linux-v5.4/fs/ocfs2/ |
D | inode.c | 247 lockdep_set_class(&inode->i_rwsem, in ocfs2_init_locked_inode()
|
/Linux-v5.4/fs/gfs2/ |
D | ops_fstype.c | 820 lockdep_set_class(&sdp->sd_quota_inode->i_rwsem, in init_inodes()
|
/Linux-v5.4/fs/btrfs/ |
D | delayed-inode.c | 1646 downgrade_write(&inode->i_rwsem); in btrfs_readdir_put_delayed_items()
|
D | ioctl.c | 959 error = down_write_killable_nested(&dir->i_rwsem, I_MUTEX_PARENT); in btrfs_mksubvol() 2867 err = down_write_killable_nested(&dir->i_rwsem, I_MUTEX_PARENT); in btrfs_ioctl_snap_destroy()
|