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

/linux-master/include/linux/
H A Dlockdep_types.h139 u8 lock_type; member in struct:lock_class
191 u8 lock_type; member in struct:lockdep_map
H A Dspinlock_types_raw.h45 .lock_type = LD_LOCK_PERCPU, \
H A 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)
298 .lock_type = LD_LOCK_WAIT_OVERRIDE, }
H A Dlocal_lock_internal.h23 .lock_type = LD_LOCK_PERCPU, \
/linux-master/fs/bcachefs/
H A Dsix.c206 static void __six_lock_wakeup(struct six_lock *lock, enum six_lock_type lock_type) argument
218 if (w->lock_want != lock_type)
221 if (saw_one && lock_type != SIX_LOCK_read)
225 ret = __do_six_trylock(lock, lock_type, w->task, false);
248 six_clear_bitmask(lock, SIX_LOCK_WAITING_read << lock_type);
253 lock_type = -ret - 1;
260 enum six_lock_type lock_type)
262 if (lock_type == SIX_LOCK_write && (state & SIX_LOCK_HELD_read))
265 if (!(state & (SIX_LOCK_WAITING_read << lock_type)))
268 __six_lock_wakeup(lock, lock_type);
259 six_lock_wakeup(struct six_lock *lock, u32 state, enum six_lock_type lock_type) argument
[all...]
H A Dbtree_cache.c706 enum six_lock_type lock_type,
791 if (!six_relock_type(&b->c.lock, lock_type, seq))
795 if (lock_type == SIX_LOCK_read)
843 enum six_lock_type lock_type,
863 level, lock_type, true);
876 ret = btree_node_lock(trans, path, &b->c, level, lock_type, trace_ip);
885 six_unlock_type(&b->c.lock, lock_type);
901 six_unlock_type(&b->c.lock, lock_type);
911 if (!six_relock_type(&b->c.lock, lock_type, seq))
919 six_unlock_type(&b->c.lock, lock_type);
701 bch2_btree_node_fill(struct btree_trans *trans, struct btree_path *path, const struct bkey_i *k, enum btree_id btree_id, unsigned level, enum six_lock_type lock_type, bool sync) argument
841 __bch2_btree_node_get(struct btree_trans *trans, struct btree_path *path, const struct bkey_i *k, unsigned level, enum six_lock_type lock_type, unsigned long trace_ip) argument
962 bch2_btree_node_get(struct btree_trans *trans, struct btree_path *path, const struct bkey_i *k, unsigned level, enum six_lock_type lock_type, unsigned long trace_ip) argument
[all...]
H A Dbtree_locking.h136 int lock_type = btree_node_locked_type(path, level); local
140 if (lock_type != BTREE_NODE_UNLOCKED) {
141 six_unlock_type(&path->l[level].b->c.lock, lock_type);
H A Dbtree_iter.c736 enum six_lock_type lock_type; local
759 lock_type = __btree_lock_want(path, path->level);
761 path->level, lock_type, trace_ip);
780 (enum btree_node_locked_type) lock_type);
785 six_unlock_type(&b->c.lock, lock_type);
917 enum six_lock_type lock_type = __btree_lock_want(path, level); local
955 b = bch2_btree_node_get(trans, path, tmp.k, level, lock_type, trace_ip);
969 (enum btree_node_locked_type) lock_type);
/linux-master/fs/ceph/
H A Dlocks.c76 static int ceph_lock_message(u8 lock_type, u16 operation, struct inode *inode, argument
117 (int)lock_type, (int)operation, owner,
121 req->r_args.filelock_change.rule = lock_type;
154 (int)lock_type, (int)operation, (u64) fl->c.flc_pid,
165 int err, lock_type; local
169 lock_type = CEPH_LOCK_FCNTL_INTR;
171 lock_type = CEPH_LOCK_FLOCK_INTR;
215 intr_req->r_args.filelock_change.rule = lock_type;
/linux-master/lib/
H A Dxarray.c38 static inline void xas_lock_type(struct xa_state *xas, unsigned int lock_type) argument
40 if (lock_type == XA_LOCK_IRQ)
42 else if (lock_type == XA_LOCK_BH)
48 static inline void xas_unlock_type(struct xa_state *xas, unsigned int lock_type) argument
50 if (lock_type == XA_LOCK_IRQ)
52 else if (lock_type == XA_LOCK_BH)
328 unsigned int lock_type = xa_lock_type(xas->xa); variable
337 xas_unlock_type(xas, lock_type);
339 xas_lock_type(xas, lock_type);
/linux-master/fs/afs/
H A Dflock.c93 bool exclusive = (vnode->lock_type == AFS_LOCK_WRITE);
119 if (vnode->lock_type == AFS_LOCK_WRITE)
517 if (vnode->lock_type == AFS_LOCK_WRITE) {
551 vnode->lock_type = type;
H A Dinternal.h729 afs_lock_type_t lock_type : 8; member in struct:afs_vnode
/linux-master/kernel/locking/
H A Dlockdep.c1335 class->lock_type = lock->lock_type;
2265 if (entry->class->lock_type == LD_LOCK_NORMAL)
2294 if (entry->class->lock_type == LD_LOCK_PERCPU &&
4815 if (unlikely(class->lock_type == LD_LOCK_WAIT_OVERRIDE))
4858 u8 inner, u8 outer, u8 lock_type)
4881 lock->lock_type = lock_type;
5332 lock->lock_type);
4856 lockdep_init_map_type(struct lockdep_map *lock, const char *name, struct lock_class_key *key, int subclass, u8 inner, u8 outer, u8 lock_type) argument
/linux-master/fs/smb/client/
H A Dcifsproto.h514 const __u16 netfid, const __u8 lock_type,
525 struct file_lock *, const __u16 lock_type,
H A Dcifssmb.c1851 const __u16 netfid, const __u8 lock_type, const __u32 num_unlock,
1871 pSMB->LockType = lock_type;
1968 struct file_lock *pLockData, const __u16 lock_type,
2018 parm_data->lock_type = cpu_to_le16(lock_type);
2068 if (parm_data->lock_type == cpu_to_le16(CIFS_UNLCK))
2071 if (parm_data->lock_type ==
2074 else if (parm_data->lock_type ==
1850 cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon, const __u16 netfid, const __u8 lock_type, const __u32 num_unlock, const __u32 num_lock, LOCKING_ANDX_RANGE *buf) argument
1965 CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon, const __u16 smb_file_id, const __u32 netpid, const loff_t start_offset, const __u64 len, struct file_lock *pLockData, const __u16 lock_type, const bool waitFlag) argument
H A Dcifspdu.h1098 __le16 lock_type; /* 0 = Read, 1 = Write, 2 = Unlock */ member in struct:cifs_posix_lock
/linux-master/drivers/block/
H A Drbd.c1732 u8 lock_type; local
1753 RBD_LOCK_NAME, &lock_type, &lock_tag,
3881 u8 lock_type; local
3888 &lock_type, &lock_tag, &lockers, &num_lockers);
3906 if (lock_type != CEPH_CLS_LOCK_EXCLUSIVE) {

Completed in 315 milliseconds