Home
last modified time | relevance | path

Searched refs:RWSEM_NONSPINNABLE (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/kernel/locking/
H A Drwsem.c39 * - Bit 1: RWSEM_NONSPINNABLE - Cannot spin on a reader-owned lock
64 #define RWSEM_NONSPINNABLE (1UL << 1) macro
65 #define RWSEM_OWNER_FLAGS_MASK (RWSEM_READER_OWNED | RWSEM_NONSPINNABLE)
174 (atomic_long_read(&sem->owner) & RWSEM_NONSPINNABLE); in __rwsem_set_reader_owned()
225 * Set the RWSEM_NONSPINNABLE bits if the RWSEM_READER_OWNED flag
235 if (owner & RWSEM_NONSPINNABLE) in rwsem_set_nonspinnable()
238 owner | RWSEM_NONSPINNABLE)); in rwsem_set_nonspinnable()
724 if ((flags & RWSEM_NONSPINNABLE) || in rwsem_can_spin_on_owner()
737 if (flags & RWSEM_NONSPINNABLE) in rwsem_owner_state()
863 if (rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)) in rwsem_optimistic_spin()
[all...]
/kernel/linux/linux-5.10/kernel/locking/
H A Drwsem.c101 #define RWSEM_NONSPINNABLE (RWSEM_RD_NONSPINNABLE | RWSEM_WR_NONSPINNABLE) macro
102 #define RWSEM_OWNER_FLAGS_MASK (RWSEM_READER_OWNED | RWSEM_NONSPINNABLE)
257 * Set the RWSEM_NONSPINNABLE bits if the RWSEM_READER_OWNED flag
267 if (owner & RWSEM_NONSPINNABLE) in rwsem_set_nonspinnable()
270 owner | RWSEM_NONSPINNABLE)); in rwsem_set_nonspinnable()
1157 disable_rspin = atomic_long_read(&sem->owner) & RWSEM_NONSPINNABLE; in rwsem_down_write_slowpath()
1227 rwsem_spin_on_owner(sem, RWSEM_NONSPINNABLE) == OWNER_NULL) in rwsem_down_write_slowpath()
1465 * to an anonymous writer by setting the RWSEM_NONSPINNABLE bits. in __up_write()
1468 !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE), sem); in __up_write()
/kernel/linux/linux-5.10/fs/hmdfs/
H A Dinode_merge.c607 #define RWSEM_NONSPINNABLE (RWSEM_RD_NONSPINNABLE | RWSEM_WR_NONSPINNABLE) in lock_root_inode_shared() macro
608 #define RWSEM_OWNER_FLAGS_MASK (RWSEM_READER_OWNED | RWSEM_NONSPINNABLE) in lock_root_inode_shared()
/kernel/linux/linux-6.6/fs/hmdfs/
H A Dinode_merge.c607 #define RWSEM_NONSPINNABLE (RWSEM_RD_NONSPINNABLE | RWSEM_WR_NONSPINNABLE) in lock_root_inode_shared() macro
608 #define RWSEM_OWNER_FLAGS_MASK (RWSEM_READER_OWNED | RWSEM_NONSPINNABLE) in lock_root_inode_shared()

Completed in 8 milliseconds