Lines Matching full:spinlock
23 #include <linux/spinlock.h>
39 * needs a spinlock held on entry (res->spinlock) and it is the
40 * only one that holds a lock on exit (res->spinlock).
57 * taken: takes and drops res->spinlock
68 spin_lock(&res->spinlock); in dlmconvert_master()
78 spin_unlock(&res->spinlock); in dlmconvert_master()
97 * caller needs: res->spinlock
98 * taken: takes and drops lock->spinlock
99 * held on exit: res->spinlock
113 assert_spin_locked(&res->spinlock); in __dlmconvert_master()
118 spin_lock(&lock->spinlock); in __dlmconvert_master()
226 spin_unlock(&lock->spinlock); in __dlmconvert_master()
247 * taken: takes and drops res->spinlock, uses DLM_LOCK_RES_IN_PROGRESS
260 spin_lock(&res->spinlock); in dlmconvert_remote()
268 /* will exit this call with spinlock held */ in dlmconvert_remote()
314 spin_unlock(&res->spinlock); in dlmconvert_remote()
320 spin_lock(&res->spinlock); in dlmconvert_remote()
339 spin_unlock(&res->spinlock); in dlmconvert_remote()
426 * taken: takes and drop res->spinlock
477 spin_lock(&res->spinlock); in dlm_convert_lock_handler()
480 spin_unlock(&res->spinlock); in dlm_convert_lock_handler()
492 spin_unlock(&res->spinlock); in dlm_convert_lock_handler()
516 spin_lock(&res->spinlock); in dlm_convert_lock_handler()
528 spin_unlock(&res->spinlock); in dlm_convert_lock_handler()