Home
last modified time | relevance | path

Searched refs:lockname (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/include/linux/
Dspinlock_types_raw.h30 # define RAW_SPIN_DEP_MAP_INIT(lockname) \ argument
32 .name = #lockname, \
35 # define SPIN_DEP_MAP_INIT(lockname) \ argument
37 .name = #lockname, \
41 # define LOCAL_SPIN_DEP_MAP_INIT(lockname) \ argument
43 .name = #lockname, \
48 # define RAW_SPIN_DEP_MAP_INIT(lockname) argument
49 # define SPIN_DEP_MAP_INIT(lockname) argument
50 # define LOCAL_SPIN_DEP_MAP_INIT(lockname) argument
54 # define SPIN_DEBUG_INIT(lockname) \ argument
[all …]
Dspinlock_types.h31 #define ___SPIN_LOCK_INITIALIZER(lockname) \ argument
34 SPIN_DEBUG_INIT(lockname) \
35 SPIN_DEP_MAP_INIT(lockname) }
37 #define __SPIN_LOCK_INITIALIZER(lockname) \ argument
38 { { .rlock = ___SPIN_LOCK_INITIALIZER(lockname) } }
40 #define __SPIN_LOCK_UNLOCKED(lockname) \ argument
41 (spinlock_t) __SPIN_LOCK_INITIALIZER(lockname)
Dmutex.h25 # define __DEP_MAP_MUTEX_INITIALIZER(lockname) \ argument
27 .name = #lockname, \
31 # define __DEP_MAP_MUTEX_INITIALIZER(lockname) argument
81 #define __DEBUG_MUTEX_INITIALIZER(lockname) \ argument
82 , .magic = &lockname
88 # define __DEBUG_MUTEX_INITIALIZER(lockname) argument
109 #define __MUTEX_INITIALIZER(lockname) \ argument
111 , .wait_lock = __RAW_SPIN_LOCK_UNLOCKED(lockname.wait_lock) \
112 , .wait_list = LIST_HEAD_INIT(lockname.wait_list) \
113 __DEBUG_MUTEX_INITIALIZER(lockname) \
[all …]
Drwlock_types.h9 # define RW_DEP_MAP_INIT(lockname) \ argument
11 .name = #lockname, \
15 # define RW_DEP_MAP_INIT(lockname) argument
39 #define __RW_LOCK_UNLOCKED(lockname) \ argument
44 RW_DEP_MAP_INIT(lockname) }
46 #define __RW_LOCK_UNLOCKED(lockname) \ argument
48 RW_DEP_MAP_INIT(lockname) }
Dseqlock.h83 # define SEQCOUNT_DEP_MAP_INIT(lockname) \ argument
84 .dep_map = { .name = #lockname }
108 # define SEQCOUNT_DEP_MAP_INIT(lockname) argument
175 #define seqcount_LOCKNAME_init(s, _lock, lockname) \ argument
177 seqcount_##lockname##_t *____s = (s); \
198 #define SEQCOUNT_LOCKNAME(lockname, locktype, preemptible, lockmember, lockbase, lock_acquire) \ argument
199 typedef struct seqcount_##lockname { \
202 } seqcount_##lockname##_t; \
205 __seqprop_##lockname##_ptr(seqcount_##lockname##_t *s) \
211 __seqprop_##lockname##_sequence(const seqcount_##lockname##_t *s) \
[all …]
Drwsem.h21 # define __RWSEM_DEP_MAP_INIT(lockname) \ argument
23 .name = #lockname, \
27 # define __RWSEM_DEP_MAP_INIT(lockname) argument
81 # define __RWSEM_DEBUG_INIT(lockname) .magic = &lockname, argument
83 # define __RWSEM_DEBUG_INIT(lockname) argument
87 #define __RWSEM_OPT_INIT(lockname) .osq = OSQ_LOCK_UNLOCKED, argument
89 #define __RWSEM_OPT_INIT(lockname) argument
142 #define DECLARE_RWSEM(lockname) \ argument
143 struct rw_semaphore lockname = __RWSEM_INITIALIZER(lockname)
Dlocal_lock_internal.h19 # define LOCAL_LOCK_DEBUG_INIT(lockname) \ argument
21 .name = #lockname, \
46 # define LOCAL_LOCK_DEBUG_INIT(lockname) argument
52 #define INIT_LOCAL_LOCK(lockname) { LOCAL_LOCK_DEBUG_INIT(lockname) } argument
109 #define INIT_LOCAL_LOCK(lockname) __LOCAL_SPIN_LOCK_UNLOCKED((lockname)) argument
Dpercpu-rwsem.h24 #define __PERCPU_RWSEM_DEP_MAP_INIT(lockname) .dep_map = { .name = #lockname }, argument
26 #define __PERCPU_RWSEM_DEP_MAP_INIT(lockname) argument
/linux-6.6.21/fs/ocfs2/dlm/
Ddlmthread.c115 dlm->name, res->lockname.len, res->lockname.name); in __dlm_lockres_calc_usage()
124 dlm->name, res->lockname.len, res->lockname.name); in __dlm_lockres_calc_usage()
158 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres()
166 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres()
178 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres()
202 res->lockname.len, res->lockname.name, master); in dlm_purge_lockres()
207 dlm->name, res->lockname.len, res->lockname.name); in dlm_purge_lockres()
234 dlm->name, res->lockname.len, res->lockname.name, master); in dlm_purge_lockres()
242 dlm->name, res->lockname.len, res->lockname.name); in dlm_purge_lockres()
249 dlm->name, res->lockname.len, res->lockname.name); in dlm_purge_lockres()
[all …]
Ddlmmaster.c278 memcpy(mle->mname, res->lockname.name, res->lockname.len); in dlm_init_mle()
279 mle->mnamelen = res->lockname.len; in dlm_init_mle()
280 mle->mnamehash = res->lockname.hash; in dlm_init_mle()
474 BUG_ON(!res->lockname.name); in dlm_lockres_release()
476 mlog(0, "destroying lockres %.*s\n", res->lockname.len, in dlm_lockres_release()
477 res->lockname.name); in dlm_lockres_release()
491 res->lockname.len, res->lockname.name, in dlm_lockres_release()
513 kmem_cache_free(dlm_lockname_cache, (void *)res->lockname.name); in dlm_lockres_release()
533 qname = (char *) res->lockname.name; in dlm_init_lockres()
536 res->lockname.len = namelen; in dlm_init_lockres()
[all …]
Ddlmast.c88 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_ast()
96 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_ast()
107 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_ast()
154 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_bast()
202 res->lockname.len, res->lockname.name, in dlm_do_local_ast()
222 res->lockname.len, res->lockname.name, in dlm_do_remote_ast()
246 dlm->name, res->lockname.len, res->lockname.name, in dlm_do_local_bast()
330 mlog(0, "%s: res %.*s\n", dlm->name, res->lockname.len, in dlm_proxy_ast_handler()
331 res->lockname.name); in dlm_proxy_ast_handler()
384 dlm->name, res->lockname.len, res->lockname.name, in dlm_proxy_ast_handler()
[all …]
Ddlmrecovery.c52 const char *lockname, int namelen,
271 dlm->name, res->lockname.len, res->lockname.name); in dlm_print_reco_node_status()
1045 if (dlm_is_recovery_lock(res->lockname.name, in dlm_move_reco_locks_to_list()
1046 res->lockname.len)) { in dlm_move_reco_locks_to_list()
1118 dlm->name, res->lockname.len, res->lockname.name, in dlm_send_mig_lockres_msg()
1131 mres->lockname, ret, send_to, in dlm_send_mig_lockres_msg()
1149 dlm_init_migratable_lockres(mres, res->lockname.name, in dlm_send_mig_lockres_msg()
1150 res->lockname.len, mres_total_locks, in dlm_send_mig_lockres_msg()
1156 const char *lockname, int namelen, in dlm_init_migratable_lockres() argument
1163 memcpy(mres->lockname, lockname, namelen); in dlm_init_migratable_lockres()
[all …]
Ddlmconvert.c188 mlog(0, "res %.*s, granting %s lock\n", res->lockname.len, in __dlmconvert_master()
189 res->lockname.name, dlm_lock_mode_name(type)); in __dlmconvert_master()
211 "%d to %d...\n", res->lockname.len, res->lockname.name, in __dlmconvert_master()
216 mlog(0, "res %.*s, queueing...\n", res->lockname.len, in __dlmconvert_master()
217 res->lockname.name); in __dlmconvert_master()
284 res->lockname.len, res->lockname.name, in dlmconvert_remote()
331 dlm->name, res->lockname.len, res->lockname.name); in dlmconvert_remote()
364 mlog(0, "%.*s\n", res->lockname.len, res->lockname.name); in dlm_send_remote_convert_request()
370 convert.namelen = res->lockname.len; in dlm_send_remote_convert_request()
372 memcpy(convert.name, res->lockname.name, convert.namelen); in dlm_send_remote_convert_request()
Ddlmlock.c137 if (!dlm_is_recovery_lock(res->lockname.name, in dlmlock_master()
138 res->lockname.len)) { in dlmlock_master()
151 if (dlm_is_recovery_lock(res->lockname.name, in dlmlock_master()
152 res->lockname.len)) { in dlmlock_master()
205 lock->ml.type, res->lockname.len, in dlmlock_remote()
206 res->lockname.name, flags); in dlmlock_remote()
235 dlm_is_recovery_lock(res->lockname.name, in dlmlock_remote()
236 res->lockname.len)) { in dlmlock_remote()
255 } else if (dlm_is_recovery_lock(res->lockname.name, in dlmlock_remote()
256 res->lockname.len)) { in dlmlock_remote()
[all …]
Ddlmunlock.c109 "while waiting for an ast!", res->lockname.len, in dlmunlock_common()
110 res->lockname.name); in dlmunlock_common()
185 dlm->name, res->lockname.len, in dlmunlock_common()
186 res->lockname.name, in dlmunlock_common()
321 mlog(0, "%.*s\n", res->lockname.len, res->lockname.name); in dlm_send_remote_unlock_request()
329 res->lockname.len, res->lockname.name); in dlm_send_remote_unlock_request()
337 unlock.namelen = res->lockname.len; in dlm_send_remote_unlock_request()
338 memcpy(unlock.name, res->lockname.name, unlock.namelen); in dlm_send_remote_unlock_request()
Ddlmdebug.c30 static int stringify_lockname(const char *lockname, int locklen, char *buf,
87 stringify_lockname(res->lockname.name, res->lockname.len, in __dlm_print_one_lock_resource()
234 static int stringify_lockname(const char *lockname, int locklen, char *buf, in stringify_lockname() argument
241 if (*lockname == 'N') { in stringify_lockname()
243 (char *)&lockname[OCFS2_DENTRY_LOCK_INO_START], in stringify_lockname()
246 OCFS2_DENTRY_LOCK_INO_START - 1, lockname, in stringify_lockname()
250 locklen, lockname); in stringify_lockname()
363 out += stringify_lockname(res->lockname.name, in debug_purgelist_print()
364 res->lockname.len, in debug_purgelist_print()
493 out += stringify_lockname(res->lockname.name, res->lockname.len, in dump_lockres()
Ddlmdomain.c150 mlog(0, "%s: Unhash res %.*s\n", dlm->name, res->lockname.len, in __dlm_unhash_lockres()
151 res->lockname.name); in __dlm_unhash_lockres()
162 bucket = dlm_lockres_hash(dlm, res->lockname.hash); in __dlm_insert_lockres()
169 mlog(0, "%s: Hash res %.*s\n", dlm->name, res->lockname.len, in __dlm_insert_lockres()
170 res->lockname.name); in __dlm_insert_lockres()
188 if (res->lockname.name[0] != name[0]) in __dlm_lookup_lockres_full()
190 if (unlikely(res->lockname.len != len)) in __dlm_lookup_lockres_full()
192 if (memcmp(res->lockname.name + 1, name + 1, len - 1)) in __dlm_lookup_lockres_full()
Ddlmcommon.h277 struct qstr lockname; member
558 u8 lockname[DLM_LOCKID_NAME_MAX]; member