Lines Matching full:spinlock
21 #include <linux/spinlock.h>
37 * needs a spinlock held on entry (res->spinlock) and it is the
38 * only one that holds a lock on exit (res->spinlock).
55 * taken: takes and drops res->spinlock
66 spin_lock(&res->spinlock); in dlmconvert_master()
76 spin_unlock(&res->spinlock); in dlmconvert_master()
95 * caller needs: res->spinlock
96 * taken: takes and drops lock->spinlock
97 * held on exit: res->spinlock
111 assert_spin_locked(&res->spinlock); in __dlmconvert_master()
116 spin_lock(&lock->spinlock); in __dlmconvert_master()
224 spin_unlock(&lock->spinlock); in __dlmconvert_master()
245 * taken: takes and drops res->spinlock, uses DLM_LOCK_RES_IN_PROGRESS
258 spin_lock(&res->spinlock); in dlmconvert_remote()
266 /* will exit this call with spinlock held */ in dlmconvert_remote()
312 spin_unlock(&res->spinlock); in dlmconvert_remote()
318 spin_lock(&res->spinlock); in dlmconvert_remote()
337 spin_unlock(&res->spinlock); in dlmconvert_remote()
424 * taken: takes and drop res->spinlock
475 spin_lock(&res->spinlock); in dlm_convert_lock_handler()
478 spin_unlock(&res->spinlock); in dlm_convert_lock_handler()
490 spin_unlock(&res->spinlock); in dlm_convert_lock_handler()
514 spin_lock(&res->spinlock); in dlm_convert_lock_handler()
526 spin_unlock(&res->spinlock); in dlm_convert_lock_handler()