/kernel/linux/linux-5.10/kernel/ |
H A D | audit_tree.c | 53 * association between mark and chunk is protected by hash_lock and 68 * tree.chunks anchors chunk.owners[].list hash_lock 70 * chunk.trees anchors tree.same_root hash_lock 72 * a hash function. RCU, hash_lock 210 static __cacheline_aligned_in_smp DEFINE_SPINLOCK(hash_lock); 225 /* hash_lock & mark->group->mark_mutex is held by caller */ 284 assert_spin_locked(&hash_lock); in replace_mark_chunk() 357 * whether it didn't change while we've dropped hash_lock. in untag_chunk() 365 spin_lock(&hash_lock); in untag_chunk() 369 spin_unlock(&hash_lock); in untag_chunk() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | audit_tree.c | 53 * association between mark and chunk is protected by hash_lock and 68 * tree.chunks anchors chunk.owners[].list hash_lock 70 * chunk.trees anchors tree.same_root hash_lock 72 * a hash function. RCU, hash_lock 210 static __cacheline_aligned_in_smp DEFINE_SPINLOCK(hash_lock); 225 /* hash_lock & mark->group->mark_mutex is held by caller */ 284 assert_spin_locked(&hash_lock); in replace_mark_chunk() 357 * whether it didn't change while we've dropped hash_lock. in untag_chunk() 365 spin_lock(&hash_lock); in untag_chunk() 369 spin_unlock(&hash_lock); in untag_chunk() [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | xt_RATEEST.c | 23 struct mutex hash_lock; member 68 mutex_lock(&xn->hash_lock); in xt_rateest_lookup() 70 mutex_unlock(&xn->hash_lock); in xt_rateest_lookup() 79 mutex_lock(&xn->hash_lock); in xt_rateest_put() 89 mutex_unlock(&xn->hash_lock); in xt_rateest_put() 123 mutex_lock(&xn->hash_lock); in xt_rateest_tg_checkentry() 126 mutex_unlock(&xn->hash_lock); in xt_rateest_tg_checkentry() 164 mutex_unlock(&xn->hash_lock); in xt_rateest_tg_checkentry() 170 mutex_unlock(&xn->hash_lock); in xt_rateest_tg_checkentry() 198 mutex_init(&xn->hash_lock); in xt_rateest_net_init() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | xt_RATEEST.c | 23 struct mutex hash_lock; member 68 mutex_lock(&xn->hash_lock); in xt_rateest_lookup() 70 mutex_unlock(&xn->hash_lock); in xt_rateest_lookup() 79 mutex_lock(&xn->hash_lock); in xt_rateest_put() 89 mutex_unlock(&xn->hash_lock); in xt_rateest_put() 123 mutex_lock(&xn->hash_lock); in xt_rateest_tg_checkentry() 126 mutex_unlock(&xn->hash_lock); in xt_rateest_tg_checkentry() 165 mutex_unlock(&xn->hash_lock); in xt_rateest_tg_checkentry() 171 mutex_unlock(&xn->hash_lock); in xt_rateest_tg_checkentry() 199 mutex_init(&xn->hash_lock); in xt_rateest_net_init() [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm-region-hash.c | 47 * A rw spin lock 'hash_lock' protects just the hash table, 65 rwlock_t hash_lock; member 199 rwlock_init(&rh->hash_lock); in dm_region_hash_create() 304 write_lock_irq(&rh->hash_lock); in __rh_alloc() 319 write_unlock_irq(&rh->hash_lock); in __rh_alloc() 330 read_unlock(&rh->hash_lock); in __rh_find() 332 read_lock(&rh->hash_lock); in __rh_find() 343 read_lock(&rh->hash_lock); in dm_rh_get_state() 345 read_unlock(&rh->hash_lock); in dm_rh_get_state() 414 read_lock(&rh->hash_lock); in dm_rh_mark_nosync() [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-region-hash.c | 49 * A rw spin lock 'hash_lock' protects just the hash table, 68 rwlock_t hash_lock; member 202 rwlock_init(&rh->hash_lock); in dm_region_hash_create() 307 write_lock_irq(&rh->hash_lock); in __rh_alloc() 322 write_unlock_irq(&rh->hash_lock); in __rh_alloc() 333 read_unlock(&rh->hash_lock); in __rh_find() 335 read_lock(&rh->hash_lock); in __rh_find() 346 read_lock(&rh->hash_lock); in dm_rh_get_state() 348 read_unlock(&rh->hash_lock); in dm_rh_get_state() 417 read_lock(&rh->hash_lock); in dm_rh_mark_nosync() [all...] |
/kernel/linux/linux-5.10/net/bridge/ |
H A D | br_fdb.c | 104 /* requires bridge hash_lock */ 111 lockdep_assert_held_once(&br->hash_lock); in br_fdb_find() 252 spin_lock_bh(&br->hash_lock); in br_fdb_find_delete_local() 257 spin_unlock_bh(&br->hash_lock); in br_fdb_find_delete_local() 267 spin_lock_bh(&br->hash_lock); in br_fdb_changeaddr() 299 spin_unlock_bh(&br->hash_lock); in br_fdb_changeaddr() 308 spin_lock_bh(&br->hash_lock); in br_fdb_change_mac_address() 334 spin_unlock_bh(&br->hash_lock); in br_fdb_change_mac_address() 370 spin_lock_bh(&br->hash_lock); in br_fdb_cleanup() 373 spin_unlock_bh(&br->hash_lock); in br_fdb_cleanup() [all...] |
/kernel/linux/linux-6.6/fs/hfs/ |
H A D | bnode.c | 269 spin_lock(&tree->hash_lock); in __hfs_bnode_create() 278 spin_unlock(&tree->hash_lock); in __hfs_bnode_create() 283 spin_unlock(&tree->hash_lock); in __hfs_bnode_create() 324 spin_lock(&tree->hash_lock); in hfs_bnode_find() 328 spin_unlock(&tree->hash_lock); in hfs_bnode_find() 334 spin_unlock(&tree->hash_lock); in hfs_bnode_find() 417 spin_lock(&tree->hash_lock); in hfs_bnode_create() 419 spin_unlock(&tree->hash_lock); in hfs_bnode_create() 468 if (!atomic_dec_and_lock(&node->refcnt, &tree->hash_lock)) in hfs_bnode_put() 478 spin_unlock(&tree->hash_lock); in hfs_bnode_put() [all...] |
H A D | btree.h | 47 spinlock_t hash_lock; member
|
/kernel/linux/linux-5.10/drivers/net/ppp/ |
H A D | pppoe.c | 104 rwlock_t hash_lock; member 228 read_lock_bh(&pn->hash_lock); in get_item() 232 read_unlock_bh(&pn->hash_lock); in get_item() 261 write_lock_bh(&pn->hash_lock); in delete_item() 263 write_unlock_bh(&pn->hash_lock); in delete_item() 279 write_lock_bh(&pn->hash_lock); in pppoe_flush_dev() 295 * hash_lock, in that order. Since we should hold the in pppoe_flush_dev() 303 write_unlock_bh(&pn->hash_lock); in pppoe_flush_dev() 323 write_lock_bh(&pn->hash_lock); in pppoe_flush_dev() 327 write_unlock_bh(&pn->hash_lock); in pppoe_flush_dev() [all...] |
/kernel/linux/linux-5.10/fs/hfs/ |
H A D | bnode.c | 276 spin_lock(&tree->hash_lock); in __hfs_bnode_create() 285 spin_unlock(&tree->hash_lock); in __hfs_bnode_create() 290 spin_unlock(&tree->hash_lock); in __hfs_bnode_create() 335 spin_lock(&tree->hash_lock); in hfs_bnode_find() 339 spin_unlock(&tree->hash_lock); in hfs_bnode_find() 345 spin_unlock(&tree->hash_lock); in hfs_bnode_find() 427 spin_lock(&tree->hash_lock); in hfs_bnode_create() 429 spin_unlock(&tree->hash_lock); in hfs_bnode_create() 480 if (!atomic_dec_and_lock(&node->refcnt, &tree->hash_lock)) in hfs_bnode_put() 490 spin_unlock(&tree->hash_lock); in hfs_bnode_put() [all...] |
H A D | btree.h | 47 spinlock_t hash_lock; member
|
H A D | inode.c | 99 spin_lock(&tree->hash_lock); in hfs_releasepage() 109 spin_unlock(&tree->hash_lock); in hfs_releasepage() 113 spin_lock(&tree->hash_lock); in hfs_releasepage() 125 spin_unlock(&tree->hash_lock); in hfs_releasepage()
|
/kernel/linux/linux-6.6/net/bridge/ |
H A D | br_fdb.c | 229 /* requires bridge hash_lock */ 236 lockdep_assert_held_once(&br->hash_lock); in br_fdb_find() 377 spin_lock_bh(&br->hash_lock); in br_fdb_find_delete_local() 382 spin_unlock_bh(&br->hash_lock); in br_fdb_find_delete_local() 452 spin_lock_bh(&br->hash_lock); in br_fdb_changeaddr() 484 spin_unlock_bh(&br->hash_lock); in br_fdb_changeaddr() 493 spin_lock_bh(&br->hash_lock); in br_fdb_change_mac_address() 519 spin_unlock_bh(&br->hash_lock); in br_fdb_change_mac_address() 555 spin_lock_bh(&br->hash_lock); in br_fdb_cleanup() 558 spin_unlock_bh(&br->hash_lock); in br_fdb_cleanup() [all...] |
/kernel/linux/linux-6.6/drivers/net/ppp/ |
H A D | pppoe.c | 104 rwlock_t hash_lock; member 228 read_lock_bh(&pn->hash_lock); in get_item() 232 read_unlock_bh(&pn->hash_lock); in get_item() 261 write_lock_bh(&pn->hash_lock); in delete_item() 263 write_unlock_bh(&pn->hash_lock); in delete_item() 279 write_lock_bh(&pn->hash_lock); in pppoe_flush_dev() 295 * hash_lock, in that order. Since we should hold the in pppoe_flush_dev() 303 write_unlock_bh(&pn->hash_lock); in pppoe_flush_dev() 323 write_lock_bh(&pn->hash_lock); in pppoe_flush_dev() 327 write_unlock_bh(&pn->hash_lock); in pppoe_flush_dev() [all...] |
/kernel/linux/linux-5.10/net/sunrpc/ |
H A D | cache.c | 84 /* Must be called under cd->hash_lock */ in sunrpc_begin_cache_remove_entry() 114 spin_lock(&detail->hash_lock); in sunrpc_cache_add_entry() 118 lockdep_is_held(&detail->hash_lock)) { in sunrpc_cache_add_entry() 129 spin_unlock(&detail->hash_lock); in sunrpc_cache_add_entry() 137 spin_unlock(&detail->hash_lock); in sunrpc_cache_add_entry() 210 spin_lock(&detail->hash_lock); in sunrpc_cache_update() 214 spin_unlock(&detail->hash_lock); in sunrpc_cache_update() 218 spin_unlock(&detail->hash_lock); in sunrpc_cache_update() 229 spin_lock(&detail->hash_lock); in sunrpc_cache_update() 236 spin_unlock(&detail->hash_lock); in sunrpc_cache_update() [all...] |
/kernel/linux/linux-6.6/net/sunrpc/ |
H A D | cache.c | 86 /* Must be called under cd->hash_lock */ in sunrpc_begin_cache_remove_entry() 116 spin_lock(&detail->hash_lock); in sunrpc_cache_add_entry() 120 lockdep_is_held(&detail->hash_lock)) { in sunrpc_cache_add_entry() 131 spin_unlock(&detail->hash_lock); in sunrpc_cache_add_entry() 139 spin_unlock(&detail->hash_lock); in sunrpc_cache_add_entry() 212 spin_lock(&detail->hash_lock); in sunrpc_cache_update() 216 spin_unlock(&detail->hash_lock); in sunrpc_cache_update() 220 spin_unlock(&detail->hash_lock); in sunrpc_cache_update() 231 spin_lock(&detail->hash_lock); in sunrpc_cache_update() 238 spin_unlock(&detail->hash_lock); in sunrpc_cache_update() [all...] |
/kernel/linux/linux-5.10/fs/hfsplus/ |
H A D | bnode.c | 426 spin_lock(&tree->hash_lock); in __hfs_bnode_create() 434 spin_unlock(&tree->hash_lock); in __hfs_bnode_create() 440 spin_unlock(&tree->hash_lock); in __hfs_bnode_create() 485 spin_lock(&tree->hash_lock); in hfs_bnode_find() 489 spin_unlock(&tree->hash_lock); in hfs_bnode_find() 496 spin_unlock(&tree->hash_lock); in hfs_bnode_find() 579 spin_lock(&tree->hash_lock); in hfs_bnode_create() 581 spin_unlock(&tree->hash_lock); in hfs_bnode_create() 632 if (!atomic_dec_and_lock(&node->refcnt, &tree->hash_lock)) in hfs_bnode_put() 642 spin_unlock(&tree->hash_lock); in hfs_bnode_put() [all...] |
H A D | inode.c | 94 spin_lock(&tree->hash_lock); in hfsplus_releasepage() 104 spin_unlock(&tree->hash_lock); in hfsplus_releasepage() 109 spin_lock(&tree->hash_lock); in hfsplus_releasepage() 121 spin_unlock(&tree->hash_lock); in hfsplus_releasepage()
|
/kernel/linux/linux-6.6/fs/hfsplus/ |
H A D | bnode.c | 419 spin_lock(&tree->hash_lock); in __hfs_bnode_create() 427 spin_unlock(&tree->hash_lock); in __hfs_bnode_create() 433 spin_unlock(&tree->hash_lock); in __hfs_bnode_create() 474 spin_lock(&tree->hash_lock); in hfs_bnode_find() 478 spin_unlock(&tree->hash_lock); in hfs_bnode_find() 485 spin_unlock(&tree->hash_lock); in hfs_bnode_find() 568 spin_lock(&tree->hash_lock); in hfs_bnode_create() 570 spin_unlock(&tree->hash_lock); in hfs_bnode_create() 619 if (!atomic_dec_and_lock(&node->refcnt, &tree->hash_lock)) in hfs_bnode_put() 629 spin_unlock(&tree->hash_lock); in hfs_bnode_put() [all...] |
H A D | inode.c | 95 spin_lock(&tree->hash_lock); in hfsplus_release_folio() 105 spin_unlock(&tree->hash_lock); in hfsplus_release_folio() 110 spin_lock(&tree->hash_lock); in hfsplus_release_folio() 122 spin_unlock(&tree->hash_lock); in hfsplus_release_folio()
|
/kernel/linux/linux-5.10/drivers/net/vxlan/ |
H A D | vxlan_core.c | 550 /* caller should hold vxlan->hash_lock */ 630 spin_lock_bh(&vxlan->hash_lock[h]); in vxlan_fdb_replay() 642 spin_unlock_bh(&vxlan->hash_lock[h]); in vxlan_fdb_replay() 647 spin_unlock_bh(&vxlan->hash_lock[h]); in vxlan_fdb_replay() 664 spin_lock_bh(&vxlan->hash_lock[h]); in vxlan_fdb_clear_offload() 669 spin_unlock_bh(&vxlan->hash_lock[h]); in vxlan_fdb_clear_offload() 1324 spin_lock_bh(&vxlan->hash_lock[hash_index]); in vxlan_fdb_add() 1329 spin_unlock_bh(&vxlan->hash_lock[hash_index]); in vxlan_fdb_add() 1386 spin_lock_bh(&vxlan->hash_lock[hash_index]); in vxlan_fdb_delete() 1389 spin_unlock_bh(&vxlan->hash_lock[hash_inde in vxlan_fdb_delete() [all...] |
/kernel/linux/linux-6.6/drivers/net/vxlan/ |
H A D | vxlan_core.c | 444 /* caller should hold vxlan->hash_lock */ 524 spin_lock_bh(&vxlan->hash_lock[h]); in vxlan_fdb_replay() 536 spin_unlock_bh(&vxlan->hash_lock[h]); in vxlan_fdb_replay() 541 spin_unlock_bh(&vxlan->hash_lock[h]); in vxlan_fdb_replay() 558 spin_lock_bh(&vxlan->hash_lock[h]); in vxlan_fdb_clear_offload() 563 spin_unlock_bh(&vxlan->hash_lock[h]); in vxlan_fdb_clear_offload() 1277 spin_lock_bh(&vxlan->hash_lock[hash_index]); in vxlan_fdb_add() 1282 spin_unlock_bh(&vxlan->hash_lock[hash_index]); in vxlan_fdb_add() 1340 spin_lock_bh(&vxlan->hash_lock[hash_index]); in vxlan_fdb_delete() 1343 spin_unlock_bh(&vxlan->hash_lock[hash_inde in vxlan_fdb_delete() [all...] |
/kernel/linux/linux-5.10/kernel/time/ |
H A D | posix-timers.c | 53 static DEFINE_SPINLOCK(hash_lock); 125 lockdep_is_held(&hash_lock)) { in __posix_timers_find() 151 spin_lock(&hash_lock); in posix_timer_add() 160 spin_unlock(&hash_lock); in posix_timer_add() 163 spin_unlock(&hash_lock); in posix_timer_add() 487 spin_lock_irqsave(&hash_lock, flags); in release_posix_timer() 489 spin_unlock_irqrestore(&hash_lock, flags); in release_posix_timer()
|
/kernel/linux/linux-6.6/kernel/time/ |
H A D | posix-timers.c | 50 static DEFINE_SPINLOCK(hash_lock); 81 hlist_for_each_entry_rcu(timer, head, t_hash, lockdep_is_held(&hash_lock)) { in __posix_timers_find() 108 spin_lock(&hash_lock); in posix_timer_add() 117 spin_unlock(&hash_lock); in posix_timer_add() 120 spin_unlock(&hash_lock); in posix_timer_add() 431 spin_lock(&hash_lock); in posix_timer_unhash_and_free() 433 spin_unlock(&hash_lock); in posix_timer_unhash_and_free() 581 * 3) Remove from the hash under hash_lock in __lock_timer()
|