Home
last modified time | relevance | path

Searched refs:lock_type (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dsix.c212 static void __six_lock_wakeup(struct six_lock *lock, enum six_lock_type lock_type) in __six_lock_wakeup() argument
224 if (w->lock_want != lock_type) in __six_lock_wakeup()
227 if (saw_one && lock_type != SIX_LOCK_read) in __six_lock_wakeup()
231 ret = __do_six_trylock(lock, lock_type, w->task, false); in __six_lock_wakeup()
254 six_clear_bitmask(lock, SIX_LOCK_WAITING_read << lock_type); in __six_lock_wakeup()
259 lock_type = -ret - 1; in __six_lock_wakeup()
266 enum six_lock_type lock_type) in six_lock_wakeup() argument
268 if (lock_type == SIX_LOCK_write && (state & SIX_LOCK_HELD_read)) in six_lock_wakeup()
271 if (!(state & (SIX_LOCK_WAITING_read << lock_type))) in six_lock_wakeup()
274 __six_lock_wakeup(lock, lock_type); in six_lock_wakeup()
Dbtree_cache.c899 enum six_lock_type lock_type, in bch2_btree_node_fill() argument
988 if (!six_relock_type(&b->c.lock, lock_type, seq)) in bch2_btree_node_fill()
992 if (lock_type == SIX_LOCK_read) in bch2_btree_node_fill()
1040 enum six_lock_type lock_type, in __bch2_btree_node_get() argument
1059 level, lock_type, true); in __bch2_btree_node_get()
1072 ret = btree_node_lock(trans, path, &b->c, level, lock_type, trace_ip); in __bch2_btree_node_get()
1081 six_unlock_type(&b->c.lock, lock_type); in __bch2_btree_node_get()
1097 six_unlock_type(&b->c.lock, lock_type); in __bch2_btree_node_get()
1111 if (!six_relock_type(&b->c.lock, lock_type, seq)) in __bch2_btree_node_get()
1119 six_unlock_type(&b->c.lock, lock_type); in __bch2_btree_node_get()
[all …]
Dbtree_locking.h130 int lock_type = btree_node_locked_type(path, level); in btree_node_unlock() local
133 EBUG_ON(lock_type == BTREE_NODE_WRITE_LOCKED); in btree_node_unlock()
135 if (lock_type != BTREE_NODE_UNLOCKED) { in btree_node_unlock()
136 six_unlock_type(&path->l[level].b->c.lock, lock_type); in btree_node_unlock()
Dbtree_iter.c724 enum six_lock_type lock_type; in btree_path_lock_root() local
747 lock_type = __btree_lock_want(path, path->level); in btree_path_lock_root()
749 path->level, lock_type, trace_ip); in btree_path_lock_root()
768 (enum btree_node_locked_type) lock_type); in btree_path_lock_root()
773 six_unlock_type(&b->c.lock, lock_type); in btree_path_lock_root()
918 enum six_lock_type lock_type = __btree_lock_want(path, level); in btree_path_down() local
956 b = bch2_btree_node_get(trans, path, tmp.k, level, lock_type, trace_ip); in btree_path_down()
970 (enum btree_node_locked_type) lock_type); in btree_path_down()
/linux-6.12.1/fs/ceph/
Dlocks.c76 static int ceph_lock_message(u8 lock_type, u16 operation, struct inode *inode, in ceph_lock_message() argument
117 (int)lock_type, (int)operation, owner, in ceph_lock_message()
121 req->r_args.filelock_change.rule = lock_type; in ceph_lock_message()
154 (int)lock_type, (int)operation, (u64) fl->c.flc_pid, in ceph_lock_message()
165 int err, lock_type; in ceph_lock_wait_for_completion() local
169 lock_type = CEPH_LOCK_FCNTL_INTR; in ceph_lock_wait_for_completion()
171 lock_type = CEPH_LOCK_FLOCK_INTR; in ceph_lock_wait_for_completion()
215 intr_req->r_args.filelock_change.rule = lock_type; in ceph_lock_wait_for_completion()
/linux-6.12.1/include/linux/
Dlockdep_types.h140 u8 lock_type; member
192 u8 lock_type; member
Dlockdep.h129 struct lock_class_key *key, int subclass, u8 inner, u8 outer, u8 lock_type);
161 (lock)->dep_map.lock_type)
167 (lock)->dep_map.lock_type)
173 (lock)->dep_map.lock_type)
179 (lock)->dep_map.lock_type)
316 .lock_type = LD_LOCK_WAIT_OVERRIDE, }
Dspinlock_types_raw.h45 .lock_type = LD_LOCK_PERCPU, \
Dlocal_lock_internal.h23 .lock_type = LD_LOCK_PERCPU, \
/linux-6.12.1/lib/
Dxarray.c38 static inline void xas_lock_type(struct xa_state *xas, unsigned int lock_type) in xas_lock_type() argument
40 if (lock_type == XA_LOCK_IRQ) in xas_lock_type()
42 else if (lock_type == XA_LOCK_BH) in xas_lock_type()
48 static inline void xas_unlock_type(struct xa_state *xas, unsigned int lock_type) in xas_unlock_type() argument
50 if (lock_type == XA_LOCK_IRQ) in xas_unlock_type()
52 else if (lock_type == XA_LOCK_BH) in xas_unlock_type()
329 unsigned int lock_type = xa_lock_type(xas->xa); in __xas_nomem() local
338 xas_unlock_type(xas, lock_type); in __xas_nomem()
340 xas_lock_type(xas, lock_type); in __xas_nomem()
/linux-6.12.1/fs/afs/
Dflock.c93 bool exclusive = (vnode->lock_type == AFS_LOCK_WRITE); in afs_grant_locks()
119 if (vnode->lock_type == AFS_LOCK_WRITE) in afs_next_locker()
517 if (vnode->lock_type == AFS_LOCK_WRITE) { in afs_do_setlk()
551 vnode->lock_type = type; in afs_do_setlk()
Dinternal.h730 afs_lock_type_t lock_type : 8; member
/linux-6.12.1/kernel/locking/
Dlockdep.c1343 class->lock_type = lock->lock_type; in register_lock_class()
2284 if (entry->class->lock_type == LD_LOCK_NORMAL) in usage_skip()
2313 if (entry->class->lock_type == LD_LOCK_PERCPU && in usage_skip()
4868 if (unlikely(class->lock_type == LD_LOCK_WAIT_OVERRIDE)) in check_wait_context()
4911 u8 inner, u8 outer, u8 lock_type) in lockdep_init_map_type() argument
4934 lock->lock_type = lock_type; in lockdep_init_map_type()
5403 lock->lock_type); in __lock_set_class()
/linux-6.12.1/fs/smb/client/
Dcifsproto.h512 const __u16 netfid, const __u8 lock_type,
523 struct file_lock *, const __u16 lock_type,
Dcifssmb.c1893 const __u16 netfid, const __u8 lock_type, const __u32 num_unlock, in cifs_lockv() argument
1913 pSMB->LockType = lock_type; in cifs_lockv()
2010 struct file_lock *pLockData, const __u16 lock_type, in CIFSSMBPosixLock() argument
2060 parm_data->lock_type = cpu_to_le16(lock_type); in CIFSSMBPosixLock()
2110 if (parm_data->lock_type == cpu_to_le16(CIFS_UNLCK)) in CIFSSMBPosixLock()
2113 if (parm_data->lock_type == in CIFSSMBPosixLock()
2116 else if (parm_data->lock_type == in CIFSSMBPosixLock()
Dcifspdu.h1098 __le16 lock_type; /* 0 = Read, 1 = Write, 2 = Unlock */ member
/linux-6.12.1/drivers/block/
Drbd.c1732 u8 lock_type; in rbd_object_map_lock() local
1753 RBD_LOCK_NAME, &lock_type, &lock_tag, in rbd_object_map_lock()
3877 u8 lock_type; in get_lock_owner_info() local
3884 &lock_type, &lock_tag, &lockers, &num_lockers); in get_lock_owner_info()
3902 if (lock_type != CEPH_CLS_LOCK_EXCLUSIVE) { in get_lock_owner_info()