Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Drbtree_fail.c55 bpf_spin_lock(&glock); in rbtree_api_nolock_remove()
57 bpf_spin_unlock(&glock); in rbtree_api_nolock_remove()
88 bpf_spin_lock(&glock); in rbtree_api_remove_unadded_node()
114 bpf_spin_lock(&glock); in rbtree_api_remove_no_drop()
145 bpf_spin_lock(&glock); in rbtree_api_add_to_multiple_trees()
160 bpf_spin_lock(&glock); in rbtree_api_use_unchecked_remove_retval()
169 bpf_spin_lock(&glock); in rbtree_api_use_unchecked_remove_retval()
190 bpf_spin_lock(&glock); in rbtree_api_add_release_unlock_escape()
194 bpf_spin_lock(&glock); in rbtree_api_add_release_unlock_escape()
211 bpf_spin_lock(&glock); in rbtree_api_first_release_unlock_escape()
[all …]
H A Drbtree.c52 bpf_spin_lock(&glock); in __add_three()
55 bpf_spin_unlock(&glock); in __add_three()
62 bpf_spin_lock(&glock); in __add_three()
64 bpf_spin_unlock(&glock); in __add_three()
90 bpf_spin_lock(&glock); in rbtree_add_and_remove()
94 bpf_spin_unlock(&glock); in rbtree_add_and_remove()
136 bpf_spin_lock(&glock); in rbtree_first_and_remove()
151 bpf_spin_unlock(&glock); in rbtree_first_and_remove()
160 bpf_spin_lock(&glock); in rbtree_first_and_remove()
192 bpf_spin_lock(&glock); in rbtree_api_release_aliasing()
[all …]
H A Dlinked_list_fail.c364 bpf_spin_lock(&glock); in use_after_unlock()
395 bpf_spin_lock(&glock); in list_double_add()
428 bpf_spin_lock(&glock); in no_node_value_type()
443 bpf_spin_lock(&glock); in incorrect_value_type()
458 bpf_spin_lock(&glock); in incorrect_node_var_off()
473 bpf_spin_lock(&glock); in incorrect_node_off1()
488 bpf_spin_lock(&glock); in incorrect_node_off2()
503 bpf_spin_lock(&glock); in no_head_type()
505 bpf_spin_lock(&glock); in no_head_type()
518 bpf_spin_lock(&glock); in incorrect_head_var_off1()
[all …]
H A Drefcounted_kptr_fail.c20 private(A) struct bpf_spin_lock glock; variable
44 bpf_spin_lock(&glock); in rbtree_refcounted_node_ref_escapes()
48 bpf_spin_unlock(&glock); in rbtree_refcounted_node_ref_escapes()
70 bpf_spin_lock(&glock); in rbtree_refcounted_node_ref_escapes_owning_input()
72 bpf_spin_unlock(&glock); in rbtree_refcounted_node_ref_escapes_owning_input()
91 bpf_spin_lock(&glock); in BPF_PROG()
96 bpf_spin_unlock(&glock); in BPF_PROG()
H A Drbtree_btf_fail__wrong_node_type.c20 private(A) struct bpf_spin_lock glock; variable
32 bpf_spin_lock(&glock); in rbtree_api_add__wrong_node_type()
34 bpf_spin_unlock(&glock); in rbtree_api_add__wrong_node_type()
H A Drbtree_btf_fail__add_wrong_type.c34 private(A) struct bpf_spin_lock glock; variable
46 bpf_spin_lock(&glock); in rbtree_api_add__add_wrong_type()
48 bpf_spin_unlock(&glock); in rbtree_api_add__add_wrong_type()
H A Dlinked_list.c309 return test_list_push_pop(&glock, &ghead); in global_list_push_pop()
343 ret = list_push_pop_multiple(&glock, &ghead, false); in global_list_push_pop_multiple()
346 return list_push_pop_multiple(&glock, &ghead, true); in global_list_push_pop_multiple()
378 return test_list_in_list(&glock, &ghead); in global_list_in_list()
H A Dlinked_list.h52 private(A) struct bpf_spin_lock glock; variable
/openbmc/linux/Documentation/filesystems/
H A Dgfs2-glocks.rst7 This documents the basic principles of the glock state machine
56 Table of glock operations and per type constants:
69 error to dump glock to the log.
89 rather than via the glock.
91 Locking rules for glock operations:
116 2. Rename glock (for rename only)
117 3. Inode glock(s)
120 4. Rgrp glock(s) (for (de)allocation operations)
147 glock is created. The per-glock statistics are lost when
148 the glock is ejected from memory.
[all …]
/openbmc/linux/fs/9p/
H A Dvfs_file.c225 struct p9_getlock glock; in v9fs_file_getlock() local
241 memset(&glock, 0, sizeof(glock)); in v9fs_file_getlock()
243 glock.start = fl->fl_start; in v9fs_file_getlock()
245 glock.length = 0; in v9fs_file_getlock()
248 glock.proc_id = fl->fl_pid; in v9fs_file_getlock()
255 switch (glock.type) { in v9fs_file_getlock()
267 fl->fl_start = glock.start; in v9fs_file_getlock()
268 if (glock.length == 0) in v9fs_file_getlock()
271 fl->fl_end = glock.start + glock.length - 1; in v9fs_file_getlock()
272 fl->fl_pid = -glock.proc_id; in v9fs_file_getlock()
[all …]
/openbmc/linux/net/9p/
H A Dclient.c2195 int p9_client_getlock_dotl(struct p9_fid *fid, struct p9_getlock *glock) in p9_client_getlock_dotl() argument
2204 fid->fid, glock->type, glock->start, glock->length, in p9_client_getlock_dotl()
2205 glock->proc_id, glock->client_id); in p9_client_getlock_dotl()
2208 glock->type, glock->start, glock->length, in p9_client_getlock_dotl()
2209 glock->proc_id, glock->client_id); in p9_client_getlock_dotl()
2214 err = p9pdu_readf(&req->rc, clnt->proto_version, "bqqds", &glock->type, in p9_client_getlock_dotl()
2215 &glock->start, &glock->length, &glock->proc_id, in p9_client_getlock_dotl()
2216 &glock->client_id); in p9_client_getlock_dotl()
2223 glock->type, glock->start, glock->length, in p9_client_getlock_dotl()
2224 glock->proc_id, glock->client_id); in p9_client_getlock_dotl()
/openbmc/linux/fs/gfs2/
H A DMakefile4 gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
H A Dglock.h134 struct gfs2_glock glock; member
178 container_of(gl, struct gfs2_glock_aspace, glock); in gfs2_glock2aspace()
H A Dmeta_io.h46 return gla->glock.gl_name.ln_sbd; in gfs2_mapping2sbd()
H A Dmain.c66 gfs2_init_glock_once(&gla->glock); in gfs2_init_gl_aspace_once()
H A Dglock.c136 container_of(gl, struct gfs2_glock_aspace, glock); in gfs2_glock_dealloc()
1206 gl = &gla->glock; in gfs2_glock_get()
/openbmc/qemu/hw/9pfs/
H A D9p.c3759 V9fsGetlock glock; in v9fs_getlock() local
3763 v9fs_string_init(&glock.client_id); in v9fs_getlock()
3765 &glock.start, &glock.length, &glock.proc_id, in v9fs_getlock()
3766 &glock.client_id); in v9fs_getlock()
3771 glock.type, glock.start, glock.length); in v9fs_getlock()
3782 glock.type = P9_LOCK_TYPE_UNLCK; in v9fs_getlock()
3784 glock.start, glock.length, glock.proc_id, in v9fs_getlock()
3785 &glock.client_id); in v9fs_getlock()
3790 trace_v9fs_getlock_return(pdu->tag, pdu->id, glock.type, glock.start, in v9fs_getlock()
3791 glock.length, glock.proc_id); in v9fs_getlock()
[all …]
/openbmc/linux/Documentation/bpf/
H A Dgraph_ds_impl.rst70 struct bpf_spin_lock glock;