Home
last modified time | relevance | path

Searched refs:i_rwsem (Results 1 – 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/fs/ceph/
Dio.c24 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/
Dio.c47 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/
Ddirectory-locking.rst7 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.
Dlocking.rst88 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.
Dpath-lookup.rst246 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 …]
Dgfs2-glocks.rst116 1. i_rwsem (if required)
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_inode.c186 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 …]
Dxfs_iops.c1347 lockdep_set_class(&inode->i_rwsem, in xfs_setup_inode()
Dxfs_icache.c406 ASSERT(!rwsem_is_locked(&inode->i_rwsem)); in xfs_iget_cache_hit()
Dxfs_super.c638 ASSERT(!rwsem_is_locked(&inode->i_rwsem)); in xfs_fs_destroy_inode()
/kernel/linux/linux-5.10/include/linux/
Dfs.h661 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/
Dfile.c351 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/
Dinode.c142 lockdep_set_class(&inode->i_rwsem, in configfs_set_inode_lock_class()
/kernel/linux/linux-5.10/fs/
Dreaddir.c55 res = down_read_killable(&inode->i_rwsem); in iterate_dir()
57 res = down_write_killable(&inode->i_rwsem); in iterate_dir()
Dinode.c175 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()
Ddax.c1219 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/
Dinode.c577 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()
Dreaddir.c276 err = down_write_killable(&dir->d_inode->i_rwsem); in ovl_check_whiteouts()
/kernel/linux/linux-5.10/lib/
Dtest_lockup.c532 lock_rwsem_ptr = (unsigned long)&test_inode->i_rwsem; in test_lockup_init()
/kernel/linux/linux-5.10/drivers/staging/android/
Dashmem.c458 lockdep_set_class(&inode->i_rwsem, &backing_shmem_inode_class); in ashmem_mmap()
/kernel/linux/linux-5.10/fs/hmdfs/
Dinode_merge.c602 struct rw_semaphore *sem = &root->i_rwsem; in lock_root_inode_shared()
/kernel/linux/linux-5.10/fs/ocfs2/
Dinode.c247 lockdep_set_class(&inode->i_rwsem, in ocfs2_init_locked_inode()
/kernel/linux/linux-5.10/fs/gfs2/
Dops_fstype.c889 lockdep_set_class(&sdp->sd_quota_inode->i_rwsem, in init_inodes()
/kernel/linux/linux-5.10/fs/btrfs/
Ddelayed-inode.c1663 downgrade_write(&inode->i_rwsem); in btrfs_readdir_put_delayed_items()
Dioctl.c973 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()

12