/linux/tools/testing/selftests/bpf/progs/ |
H A D | rbtree_fail.c | 16 private(A) struct bpf_spin_lock glock; variable 55 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() 98 bpf_spin_unlock(&glock); in rbtree_api_remove_unadded_node() 114 bpf_spin_lock(&glock); in rbtree_api_remove_no_drop() 125 bpf_spin_unlock(&glock); in rbtree_api_remove_no_drop() 131 bpf_spin_unlock(&glock); in rbtree_api_remove_no_drop() 145 bpf_spin_lock(&glock); in rbtree_api_add_to_multiple_trees() 150 bpf_spin_unlock(&glock); in rbtree_api_add_to_multiple_trees() [all …]
|
H A D | rbtree.c | 17 struct bpf_spin_lock glock; member 30 private(A) struct bpf_spin_lock glock; variable 64 bpf_spin_lock(&glock); in __add_three() 67 bpf_spin_unlock(&glock); in __add_three() 74 bpf_spin_lock(&glock); in __add_three() 76 bpf_spin_unlock(&glock); in __add_three() 83 return __add_three(&groot, &glock); in rbtree_add_nodes() 89 return __add_three(&groot_nested.inner.root, &groot_nested.inner.glock); in rbtree_add_nodes_nested() 108 bpf_spin_lock(&glock); in rbtree_add_and_remove() 112 bpf_spin_unlock(&glock); in rbtree_add_and_remove() [all …]
|
H A D | linked_list_fail.c | 112 CHECK(global_kptr, op, &glock, &f1->head); \ 113 CHECK(global_map, op, &glock, &v->head); \ 114 CHECK(global_inner_map, op, &glock, &iv->head); \ 149 CHECK(global_kptr, op, &glock, &f1->head, &b->node); \ 150 CHECK(global_map, op, &glock, &v->head, &f->node2); \ 151 CHECK(global_inner_map, op, &glock, &iv->head, &f->node2); \ 364 bpf_spin_lock(&glock); in use_after_unlock() 370 bpf_spin_unlock(&glock); in use_after_unlock() 395 bpf_spin_lock(&glock); in list_double_add() 403 bpf_spin_unlock(&glock); in list_double_add() [all …]
|
H A D | refcounted_kptr_fail.c | 20 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() 89 bpf_spin_lock(&glock); in rbtree_refcounted_node_ref_escapes_owning_input() 91 bpf_spin_unlock(&glock); in rbtree_refcounted_node_ref_escapes_owning_input() 110 bpf_spin_lock(&glock); in BPF_PROG() 115 bpf_spin_unlock(&glock); in BPF_PROG()
|
H A D | rbtree_btf_fail__wrong_node_type.c | 20 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 D | rbtree_btf_fail__add_wrong_type.c | 34 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 D | linked_list.c | 322 return test_list_push_pop(&glock, &ghead); in global_list_push_pop() 382 ret = list_push_pop_multiple(&glock, &ghead, false); in global_list_push_pop_multiple() 385 return list_push_pop_multiple(&glock, &ghead, true); in global_list_push_pop_multiple() 417 return test_list_in_list(&glock, &ghead); in global_list_in_list()
|
H A D | linked_list.h | 52 private(A) struct bpf_spin_lock glock; variable
|
/linux/Documentation/filesystems/ |
H A D | gfs2-glocks.rst | 7 This documents the basic principles of the glock state machine 8 internals. Each glock (struct gfs2_glock in fs/gfs2/incore.h) 20 just the holders) associated with the glock. If there are any 25 There are three lock states that users of the glock layer can request, 32 UN IV/NL Unlocked (no DLM lock associated with glock) or NL 52 These rules are implemented using the various glock operations which 53 are defined for each type of glock. Not all types of glocks use 56 Table of glock operations and per type constants: 64 go_instantiate Called when a glock has been acquired 65 go_held Called every time a glock holder is acquired [all …]
|
/linux/fs/9p/ |
H A D | vfs_file.c | 225 struct p9_getlock glock; in v9fs_file_getlock() local 241 memset(&glock, 0, sizeof(glock)); in v9fs_file_getlock() 242 glock.type = P9_LOCK_TYPE_UNLCK; in v9fs_file_getlock() 243 glock.start = fl->fl_start; in v9fs_file_getlock() 245 glock.length = 0; in v9fs_file_getlock() 247 glock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_getlock() 248 glock.proc_id = fl->c.flc_pid; in v9fs_file_getlock() 249 glock.client_id = fid->clnt->name; in v9fs_file_getlock() 251 res = p9_client_getlock_dotl(fid, &glock); in v9fs_file_getlock() 255 switch (glock.type) { in v9fs_file_getlock() [all …]
|
/linux/net/9p/ |
H A D | client.c | 2244 int p9_client_getlock_dotl(struct p9_fid *fid, struct p9_getlock *glock) in p9_client_getlock_dotl() argument 2253 fid->fid, glock->type, glock->start, glock->length, in p9_client_getlock_dotl() 2254 glock->proc_id, glock->client_id); in p9_client_getlock_dotl() 2257 glock->type, glock->start, glock->length, in p9_client_getlock_dotl() 2258 glock->proc_id, glock->client_id); in p9_client_getlock_dotl() 2263 err = p9pdu_readf(&req->rc, clnt->proto_version, "bqqds", &glock->type, in p9_client_getlock_dotl() 2264 &glock->start, &glock->length, &glock->proc_id, in p9_client_getlock_dotl() 2265 &glock->client_id); in p9_client_getlock_dotl() 2272 glock->type, glock->start, glock->length, in p9_client_getlock_dotl() 2273 glock->proc_id, glock->client_id); in p9_client_getlock_dotl()
|
/linux/fs/gfs2/ |
H A D | glock.h | 135 struct gfs2_glock glock; member 164 container_of(gl, struct gfs2_glock_aspace, glock); in gfs2_glock2aspace()
|
H A D | Makefile | 4 gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
|
H A D | meta_io.h | 46 return gla->glock.gl_name.ln_sbd; in gfs2_mapping2sbd()
|
H A D | main.c | 66 gfs2_init_glock_once(&gla->glock); in gfs2_init_gl_aspace_once()
|
H A D | glock.c | 134 container_of(gl, struct gfs2_glock_aspace, glock); in gfs2_glock_dealloc() 1198 gl = &gla->glock; in gfs2_glock_get()
|
/linux/Documentation/bpf/ |
H A D | graph_ds_impl.rst | 70 struct bpf_spin_lock glock;
|