Lines Matching full:spinlock

15 #include <linux/spinlock.h>
93 * spinlock lock ordering: if multiple locks are needed, obey this ordering:
95 * struct dlm_ctxt->spinlock
96 * struct dlm_lock_resource->spinlock
99 * dlm_master_list_entry->spinlock
100 * dlm_lock->spinlock
160 assert_spin_locked(&dlm->spinlock); in __dlm_insert_lockres()
183 assert_spin_locked(&dlm->spinlock); in __dlm_lookup_lockres_full()
215 assert_spin_locked(&dlm->spinlock); in __dlm_lookup_lockres()
219 spin_lock(&res->spinlock); in __dlm_lookup_lockres()
221 spin_unlock(&res->spinlock); in __dlm_lookup_lockres()
225 spin_unlock(&res->spinlock); in __dlm_lookup_lockres()
238 spin_lock(&dlm->spinlock); in dlm_lookup_lockres()
240 spin_unlock(&dlm->spinlock); in dlm_lookup_lockres()
414 spin_lock(&dlm->spinlock); in dlm_migrate_all_locks()
426 * spinlock and retake it if it does migration. */ in dlm_migrate_all_locks()
429 spin_lock(&res->spinlock); in dlm_migrate_all_locks()
434 spin_unlock(&res->spinlock); in dlm_migrate_all_locks()
439 cond_resched_lock(&dlm->spinlock); in dlm_migrate_all_locks()
443 cond_resched_lock(&dlm->spinlock); in dlm_migrate_all_locks()
459 spin_unlock(&dlm->spinlock); in dlm_migrate_all_locks()
477 spin_lock(&dlm->spinlock); in dlm_no_joining_node()
479 spin_unlock(&dlm->spinlock); in dlm_no_joining_node()
497 spin_lock(&dlm->spinlock); in dlm_begin_exit_domain_handler()
499 spin_unlock(&dlm->spinlock); in dlm_begin_exit_domain_handler()
508 /* Yikes, a double spinlock! I need domain_lock for the dlm in dlm_mark_domain_leaving()
509 * state and the dlm spinlock for join state... Sorry! */ in dlm_mark_domain_leaving()
512 spin_lock(&dlm->spinlock); in dlm_mark_domain_leaving()
517 spin_unlock(&dlm->spinlock); in dlm_mark_domain_leaving()
525 spin_unlock(&dlm->spinlock); in dlm_mark_domain_leaving()
533 assert_spin_locked(&dlm->spinlock); in __dlm_print_nodes()
558 spin_lock(&dlm->spinlock); in dlm_exit_domain_handler()
567 spin_unlock(&dlm->spinlock); in dlm_exit_domain_handler()
610 spin_lock(&dlm->spinlock); in dlm_begin_exit_domain()
618 spin_unlock(&dlm->spinlock); in dlm_begin_exit_domain()
620 spin_lock(&dlm->spinlock); in dlm_begin_exit_domain()
622 spin_unlock(&dlm->spinlock); in dlm_begin_exit_domain()
634 spin_lock(&dlm->spinlock); in dlm_leave_domain()
639 /* Drop the dlm spinlock. This is safe wrt the domain_map. in dlm_leave_domain()
645 spin_unlock(&dlm->spinlock); in dlm_leave_domain()
664 spin_lock(&dlm->spinlock); in dlm_leave_domain()
670 spin_unlock(&dlm->spinlock); in dlm_leave_domain()
850 spin_lock(&dlm->spinlock); in dlm_query_join_handler()
897 spin_unlock(&dlm->spinlock); in dlm_query_join_handler()
924 spin_lock(&dlm->spinlock); in dlm_assert_joined_handler()
933 spin_unlock(&dlm->spinlock); in dlm_assert_joined_handler()
949 spin_unlock(&dlm->spinlock); in dlm_assert_joined_handler()
1123 spin_lock(&dlm->spinlock); in dlm_query_region_handler()
1144 spin_unlock(&dlm->spinlock); in dlm_query_region_handler()
1292 spin_lock(&dlm->spinlock); in dlm_query_nodeinfo_handler()
1313 spin_unlock(&dlm->spinlock); in dlm_query_nodeinfo_handler()
1335 spin_lock(&dlm->spinlock); in dlm_cancel_join_handler()
1342 spin_unlock(&dlm->spinlock); in dlm_cancel_join_handler()
1542 spin_lock(&dlm->spinlock); in dlm_send_join_asserts()
1544 spin_unlock(&dlm->spinlock); in dlm_send_join_asserts()
1574 spin_lock(&dlm->spinlock); in dlm_should_restart_join()
1579 spin_unlock(&dlm->spinlock); in dlm_should_restart_join()
1607 spin_lock(&dlm->spinlock); in dlm_try_to_join_domain()
1610 spin_unlock(&dlm->spinlock); in dlm_try_to_join_domain()
1641 spin_lock(&dlm->spinlock); in dlm_try_to_join_domain()
1644 spin_unlock(&dlm->spinlock); in dlm_try_to_join_domain()
1673 spin_lock(&dlm->spinlock); in dlm_try_to_join_domain()
1679 spin_unlock(&dlm->spinlock); in dlm_try_to_join_domain()
1988 spin_lock_init(&dlm->spinlock); in dlm_alloc_ctxt()