Lines Matching refs:spinlock

164 	assert_spin_locked(&dlm->spinlock);  in __dlm_mle_attach_hb_events()
181 spin_lock(&dlm->spinlock); in dlm_mle_detach_hb_events()
183 spin_unlock(&dlm->spinlock); in dlm_mle_detach_hb_events()
191 assert_spin_locked(&dlm->spinlock); in dlm_get_mle_inuse()
202 spin_lock(&dlm->spinlock); in dlm_put_mle_inuse()
207 spin_unlock(&dlm->spinlock); in dlm_put_mle_inuse()
217 assert_spin_locked(&dlm->spinlock); in __dlm_put_mle()
236 spin_lock(&dlm->spinlock); in dlm_put_mle()
240 spin_unlock(&dlm->spinlock); in dlm_put_mle()
255 assert_spin_locked(&dlm->spinlock); in dlm_init_mle()
262 spin_lock_init(&mle->spinlock); in dlm_init_mle()
304 assert_spin_locked(&dlm->spinlock); in __dlm_unlink_mle()
348 assert_spin_locked(&dlm->spinlock); in dlm_hb_event_notify_attached()
362 spin_lock(&mle->spinlock); in dlm_mle_node_down()
369 spin_unlock(&mle->spinlock); in dlm_mle_node_down()
376 spin_lock(&mle->spinlock); in dlm_mle_node_up()
383 spin_unlock(&mle->spinlock); in dlm_mle_node_up()
411 assert_spin_locked(&dlm->spinlock); in dlm_mle_release()
540 spin_lock_init(&res->spinlock); in dlm_init_lockres()
562 spin_lock(&res->spinlock); in dlm_init_lockres()
564 spin_unlock(&res->spinlock); in dlm_init_lockres()
604 assert_spin_locked(&res->spinlock); in dlm_lockres_set_refmap_bit()
615 assert_spin_locked(&res->spinlock); in dlm_lockres_clear_refmap_bit()
636 assert_spin_locked(&res->spinlock); in dlm_lockres_grab_inflight_ref()
643 assert_spin_locked(&res->spinlock); in dlm_lockres_drop_inflight_ref()
659 assert_spin_locked(&res->spinlock); in __dlm_lockres_grab_inflight_worker()
669 assert_spin_locked(&res->spinlock); in __dlm_lockres_drop_inflight_worker()
680 spin_lock(&res->spinlock); in dlm_lockres_drop_inflight_worker()
682 spin_unlock(&res->spinlock); in dlm_lockres_drop_inflight_worker()
723 spin_lock(&dlm->spinlock); in dlm_get_lock_resource()
726 spin_unlock(&dlm->spinlock); in dlm_get_lock_resource()
727 spin_lock(&tmpres->spinlock); in dlm_get_lock_resource()
735 spin_unlock(&tmpres->spinlock); in dlm_get_lock_resource()
745 spin_unlock(&tmpres->spinlock); in dlm_get_lock_resource()
756 spin_unlock(&tmpres->spinlock); in dlm_get_lock_resource()
765 spin_unlock(&tmpres->spinlock); in dlm_get_lock_resource()
783 spin_unlock(&dlm->spinlock); in dlm_get_lock_resource()
800 spin_lock(&res->spinlock); in dlm_get_lock_resource()
804 spin_unlock(&res->spinlock); in dlm_get_lock_resource()
805 spin_unlock(&dlm->spinlock); in dlm_get_lock_resource()
838 spin_unlock(&dlm->spinlock); in dlm_get_lock_resource()
890 spin_unlock(&dlm->spinlock); in dlm_get_lock_resource()
914 spin_lock(&dlm->spinlock); in dlm_get_lock_resource()
923 spin_unlock(&dlm->spinlock); in dlm_get_lock_resource()
985 spin_lock(&res->spinlock); in dlm_get_lock_resource()
987 spin_unlock(&res->spinlock); in dlm_get_lock_resource()
1016 spin_lock(&res->spinlock); in dlm_wait_for_lock_mastery()
1020 spin_unlock(&res->spinlock); in dlm_wait_for_lock_mastery()
1035 spin_unlock(&res->spinlock); in dlm_wait_for_lock_mastery()
1037 spin_lock(&mle->spinlock); in dlm_wait_for_lock_mastery()
1057 spin_unlock(&mle->spinlock); in dlm_wait_for_lock_mastery()
1098 spin_unlock(&mle->spinlock); in dlm_wait_for_lock_mastery()
1137 spin_lock(&res->spinlock); in dlm_wait_for_lock_mastery()
1141 spin_unlock(&res->spinlock); in dlm_wait_for_lock_mastery()
1219 assert_spin_locked(&mle->spinlock); in dlm_restart_lock_mastery()
1352 spin_lock(&mle->spinlock); in dlm_do_master_request()
1380 spin_unlock(&mle->spinlock); in dlm_do_master_request()
1433 spin_lock(&dlm->spinlock); in dlm_master_request_handler()
1436 spin_unlock(&dlm->spinlock); in dlm_master_request_handler()
1439 spin_lock(&res->spinlock); in dlm_master_request_handler()
1447 spin_unlock(&res->spinlock); in dlm_master_request_handler()
1454 spin_unlock(&res->spinlock); in dlm_master_request_handler()
1465 spin_unlock(&res->spinlock); in dlm_master_request_handler()
1479 spin_unlock(&res->spinlock); in dlm_master_request_handler()
1504 spin_lock(&tmpmle->spinlock); in dlm_master_request_handler()
1540 spin_unlock(&tmpmle->spinlock); in dlm_master_request_handler()
1543 spin_unlock(&res->spinlock); in dlm_master_request_handler()
1565 spin_unlock(&dlm->spinlock); in dlm_master_request_handler()
1583 spin_lock(&tmpmle->spinlock); in dlm_master_request_handler()
1598 spin_unlock(&tmpmle->spinlock); in dlm_master_request_handler()
1601 spin_unlock(&dlm->spinlock); in dlm_master_request_handler()
1617 spin_lock(&res->spinlock); in dlm_master_request_handler()
1623 spin_unlock(&res->spinlock); in dlm_master_request_handler()
1628 spin_unlock(&res->spinlock); in dlm_master_request_handler()
1664 spin_lock(&res->spinlock); in dlm_do_assert_master()
1666 spin_unlock(&res->spinlock); in dlm_do_assert_master()
1704 spin_lock(&dlm->spinlock); in dlm_do_assert_master()
1712 spin_unlock(&dlm->spinlock); in dlm_do_assert_master()
1733 spin_lock(&res->spinlock); in dlm_do_assert_master()
1735 spin_unlock(&res->spinlock); in dlm_do_assert_master()
1742 spin_lock(&res->spinlock); in dlm_do_assert_master()
1744 spin_unlock(&res->spinlock); in dlm_do_assert_master()
1785 spin_lock(&dlm->spinlock); in dlm_assert_master_handler()
1834 spin_unlock(&dlm->spinlock); in dlm_assert_master_handler()
1845 spin_lock(&res->spinlock); in dlm_assert_master_handler()
1897 spin_unlock(&res->spinlock); in dlm_assert_master_handler()
1907 spin_lock(&mle->spinlock); in dlm_assert_master_handler()
1925 spin_unlock(&mle->spinlock); in dlm_assert_master_handler()
1929 spin_lock(&res->spinlock); in dlm_assert_master_handler()
1942 spin_unlock(&res->spinlock); in dlm_assert_master_handler()
1990 spin_unlock(&dlm->spinlock); in dlm_assert_master_handler()
1995 spin_lock(&res->spinlock); in dlm_assert_master_handler()
1997 spin_unlock(&res->spinlock); in dlm_assert_master_handler()
2024 spin_unlock(&res->spinlock); in dlm_assert_master_handler()
2029 spin_unlock(&dlm->spinlock); in dlm_assert_master_handler()
2040 spin_lock(&res->spinlock); in dlm_assert_master_post_handler()
2042 spin_unlock(&res->spinlock); in dlm_assert_master_post_handler()
2096 spin_lock(&dlm->spinlock); in dlm_assert_master_worker()
2098 spin_unlock(&dlm->spinlock); in dlm_assert_master_worker()
2122 spin_lock(&res->spinlock); in dlm_assert_master_worker()
2127 spin_unlock(&res->spinlock); in dlm_assert_master_worker()
2131 spin_unlock(&res->spinlock); in dlm_assert_master_worker()
2173 spin_lock(&dlm->spinlock); in dlm_pre_master_reco_lockres()
2175 spin_unlock(&dlm->spinlock); in dlm_pre_master_reco_lockres()
2193 spin_lock(&dlm->spinlock); in dlm_pre_master_reco_lockres()
2202 spin_unlock(&dlm->spinlock); in dlm_pre_master_reco_lockres()
2282 spin_lock(&dlm->spinlock); in dlm_deref_lockres_handler()
2285 spin_unlock(&dlm->spinlock); in dlm_deref_lockres_handler()
2290 spin_unlock(&dlm->spinlock); in dlm_deref_lockres_handler()
2292 spin_lock(&res->spinlock); in dlm_deref_lockres_handler()
2302 spin_unlock(&res->spinlock); in dlm_deref_lockres_handler()
2374 spin_lock(&dlm->spinlock); in dlm_deref_lockres_done_handler()
2377 spin_unlock(&dlm->spinlock); in dlm_deref_lockres_done_handler()
2383 spin_lock(&res->spinlock); in dlm_deref_lockres_done_handler()
2385 spin_unlock(&res->spinlock); in dlm_deref_lockres_done_handler()
2386 spin_unlock(&dlm->spinlock); in dlm_deref_lockres_done_handler()
2395 spin_unlock(&res->spinlock); in dlm_deref_lockres_done_handler()
2398 spin_unlock(&dlm->spinlock); in dlm_deref_lockres_done_handler()
2450 spin_lock(&res->spinlock); in dlm_deref_lockres_worker()
2457 spin_unlock(&res->spinlock); in dlm_deref_lockres_worker()
2491 assert_spin_locked(&res->spinlock); in dlm_is_lockres_migratable()
2580 spin_lock(&dlm->spinlock); in dlm_migrate_lockres()
2592 spin_unlock(&dlm->spinlock); in dlm_migrate_lockres()
2608 spin_lock(&res->spinlock); in dlm_migrate_lockres()
2611 spin_unlock(&res->spinlock); in dlm_migrate_lockres()
2658 spin_lock(&res->spinlock); in dlm_migrate_lockres()
2661 spin_unlock(&res->spinlock); in dlm_migrate_lockres()
2704 spin_lock(&res->spinlock); in dlm_migrate_lockres()
2707 spin_unlock(&res->spinlock); in dlm_migrate_lockres()
2716 spin_lock(&res->spinlock); in dlm_migrate_lockres()
2720 spin_unlock(&res->spinlock); in dlm_migrate_lockres()
2761 __must_hold(&dlm->spinlock) in dlm_empty_lockres()
2767 assert_spin_locked(&dlm->spinlock); in dlm_empty_lockres()
2769 spin_lock(&res->spinlock); in dlm_empty_lockres()
2772 spin_unlock(&res->spinlock); in dlm_empty_lockres()
2778 spin_unlock(&dlm->spinlock); in dlm_empty_lockres()
2785 spin_lock(&dlm->spinlock); in dlm_empty_lockres()
2794 spin_lock(&lock->spinlock); in dlm_lock_basts_flushed()
2796 spin_unlock(&lock->spinlock); in dlm_lock_basts_flushed()
2806 spin_lock(&res->spinlock); in dlm_migration_can_proceed()
2808 spin_unlock(&res->spinlock); in dlm_migration_can_proceed()
2812 spin_lock(&dlm->spinlock); in dlm_migration_can_proceed()
2815 spin_unlock(&dlm->spinlock); in dlm_migration_can_proceed()
2823 spin_lock(&res->spinlock); in dlm_lockres_is_dirty()
2825 spin_unlock(&res->spinlock); in dlm_lockres_is_dirty()
2841 spin_lock(&res->spinlock); in dlm_mark_lockres_migrating()
2847 spin_unlock(&res->spinlock); in dlm_mark_lockres_migrating()
2853 spin_lock(&res->spinlock); in dlm_mark_lockres_migrating()
2856 spin_unlock(&res->spinlock); in dlm_mark_lockres_migrating()
2886 spin_lock(&dlm->spinlock); in dlm_mark_lockres_migrating()
2892 spin_unlock(&dlm->spinlock); in dlm_mark_lockres_migrating()
2899 spin_lock(&res->spinlock); in dlm_mark_lockres_migrating()
2906 spin_unlock(&res->spinlock); in dlm_mark_lockres_migrating()
2929 assert_spin_locked(&res->spinlock); in dlm_remove_nonlocal_locks()
2985 assert_spin_locked(&dlm->spinlock); in dlm_pick_migration_target()
2986 assert_spin_locked(&res->spinlock); in dlm_pick_migration_target()
3046 spin_lock(&dlm->spinlock); in dlm_do_migrate_request()
3048 spin_unlock(&dlm->spinlock); in dlm_do_migrate_request()
3078 spin_lock(&res->spinlock); in dlm_do_migrate_request()
3080 spin_unlock(&res->spinlock); in dlm_do_migrate_request()
3126 spin_lock(&dlm->spinlock); in dlm_migrate_request_handler()
3129 spin_lock(&res->spinlock); in dlm_migrate_request_handler()
3134 spin_unlock(&res->spinlock); in dlm_migrate_request_handler()
3142 spin_unlock(&res->spinlock); in dlm_migrate_request_handler()
3157 spin_unlock(&dlm->spinlock); in dlm_migrate_request_handler()
3191 assert_spin_locked(&dlm->spinlock); in dlm_add_migration_mle()
3198 spin_lock(&tmp->spinlock); in dlm_add_migration_mle()
3205 spin_unlock(&tmp->spinlock); in dlm_add_migration_mle()
3236 spin_unlock(&tmp->spinlock); in dlm_add_migration_mle()
3267 spin_lock(&res->spinlock); in dlm_reset_mleres_owner()
3270 spin_unlock(&res->spinlock); in dlm_reset_mleres_owner()
3290 spin_lock(&mle->spinlock); in dlm_clean_migration_mle()
3293 spin_unlock(&mle->spinlock); in dlm_clean_migration_mle()
3305 spin_lock(&mle->spinlock); in dlm_clean_block_mle()
3310 spin_unlock(&mle->spinlock); in dlm_clean_block_mle()
3318 spin_unlock(&mle->spinlock); in dlm_clean_block_mle()
3337 assert_spin_locked(&dlm->spinlock); in dlm_clean_master_list()
3417 spin_lock(&dlm->spinlock); in dlm_finish_migration()
3421 spin_unlock(&dlm->spinlock); in dlm_finish_migration()
3426 spin_lock(&res->spinlock); in dlm_finish_migration()
3428 spin_unlock(&res->spinlock); in dlm_finish_migration()
3465 spin_lock(&res->spinlock); in dlm_finish_migration()
3468 spin_unlock(&res->spinlock); in dlm_finish_migration()
3487 assert_spin_locked(&res->spinlock); in __dlm_lockres_reserve_ast()
3512 if (!atomic_dec_and_lock(&res->asts_reserved, &res->spinlock)) in dlm_lockres_release_ast()
3516 spin_unlock(&res->spinlock); in dlm_lockres_release_ast()
3523 spin_unlock(&res->spinlock); in dlm_lockres_release_ast()
3541 spin_lock(&dlm->spinlock); in dlm_force_free_mles()
3563 spin_unlock(&dlm->spinlock); in dlm_force_free_mles()