Lines Matching full:spinlock

42 /* will exit holding res->spinlock, but may drop in function */
48 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags()
54 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags()
56 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags()
80 assert_spin_locked(&res->spinlock); in __dlm_lockres_unused()
111 assert_spin_locked(&dlm->spinlock); in __dlm_lockres_calc_usage()
112 assert_spin_locked(&res->spinlock); in __dlm_lockres_calc_usage()
137 spin_lock(&dlm->spinlock); in dlm_lockres_calc_usage()
138 spin_lock(&res->spinlock); in dlm_lockres_calc_usage()
142 spin_unlock(&res->spinlock); in dlm_lockres_calc_usage()
143 spin_unlock(&dlm->spinlock); in dlm_lockres_calc_usage()
150 * It requires dlm and lockres spinlock to be taken.
155 assert_spin_locked(&dlm->spinlock); in __dlm_do_purge_lockres()
156 assert_spin_locked(&res->spinlock); in __dlm_do_purge_lockres()
198 assert_spin_locked(&dlm->spinlock); in dlm_purge_lockres()
199 assert_spin_locked(&res->spinlock); in dlm_purge_lockres()
210 spin_unlock(&res->spinlock); in dlm_purge_lockres()
215 /* drop spinlock... retake below */ in dlm_purge_lockres()
216 spin_unlock(&res->spinlock); in dlm_purge_lockres()
217 spin_unlock(&dlm->spinlock); in dlm_purge_lockres()
219 spin_lock(&res->spinlock); in dlm_purge_lockres()
222 spin_unlock(&res->spinlock); in dlm_purge_lockres()
230 spin_lock(&dlm->spinlock); in dlm_purge_lockres()
231 spin_lock(&res->spinlock); in dlm_purge_lockres()
245 spin_unlock(&res->spinlock); in dlm_purge_lockres()
272 spin_unlock(&res->spinlock); in dlm_purge_lockres()
275 spin_unlock(&res->spinlock); in dlm_purge_lockres()
285 spin_lock(&dlm->spinlock); in dlm_run_purge_list()
294 spin_lock(&lockres->spinlock); in dlm_run_purge_list()
306 spin_unlock(&lockres->spinlock); in dlm_run_purge_list()
312 * spinlock will prevent people from getting and more in dlm_run_purge_list()
325 spin_unlock(&lockres->spinlock); in dlm_run_purge_list()
336 cond_resched_lock(&dlm->spinlock); in dlm_run_purge_list()
339 spin_unlock(&dlm->spinlock); in dlm_run_purge_list()
350 * spinlock, and because we know that it is not migrating/ in dlm_shuffle_lists()
355 assert_spin_locked(&res->spinlock); in dlm_shuffle_lists()
408 spin_lock(&target->spinlock); in dlm_shuffle_lists()
426 spin_unlock(&target->spinlock); in dlm_shuffle_lists()
470 spin_lock(&target->spinlock); in dlm_shuffle_lists()
486 spin_unlock(&target->spinlock); in dlm_shuffle_lists()
502 spin_lock(&dlm->spinlock); in dlm_kick_thread()
503 spin_lock(&res->spinlock); in dlm_kick_thread()
505 spin_unlock(&res->spinlock); in dlm_kick_thread()
506 spin_unlock(&dlm->spinlock); in dlm_kick_thread()
513 assert_spin_locked(&dlm->spinlock); in __dlm_dirty_lockres()
514 assert_spin_locked(&res->spinlock); in __dlm_dirty_lockres()
564 spin_lock(&dlm->spinlock); in dlm_dirty_list_empty()
566 spin_unlock(&dlm->spinlock); in dlm_dirty_list_empty()
633 spin_lock(&lock->spinlock); in dlm_flush_asts()
637 spin_unlock(&lock->spinlock); in dlm_flush_asts()
699 /* We really don't want to hold dlm->spinlock while in dlm_thread()
703 * and drop dlm->spinlock ASAP. Once off the list, in dlm_thread()
704 * res->spinlock needs to be taken again to protect in dlm_thread()
706 spin_lock(&dlm->spinlock); in dlm_thread()
717 spin_lock(&res->spinlock); in dlm_thread()
720 spin_unlock(&res->spinlock); in dlm_thread()
721 spin_unlock(&dlm->spinlock); in dlm_thread()
729 spin_lock(&res->spinlock); in dlm_thread()
750 spin_unlock(&res->spinlock); in dlm_thread()
762 * spinlock and do NOT have the dlm lock. in dlm_thread()
768 spin_unlock(&res->spinlock); in dlm_thread()
775 spin_lock(&dlm->spinlock); in dlm_thread()
779 spin_lock(&res->spinlock); in dlm_thread()
781 spin_unlock(&res->spinlock); in dlm_thread()
794 spin_unlock(&dlm->spinlock); in dlm_thread()