Lines Matching refs:lock
100 mutex_init(&ns->lock); in alloc_ns()
250 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns()
256 mutex_lock_nested(&ns->lock, ns->level); in __aa_create_ns()
261 mutex_unlock(&ns->lock); in __aa_create_ns()
269 mutex_unlock(&ns->lock); in __aa_create_ns()
287 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns()
312 mutex_lock_nested(&parent->lock, parent->level); in aa_prepare_ns()
318 mutex_unlock(&parent->lock); in aa_prepare_ns()
335 mutex_lock_nested(&ns->lock, ns->level); in destroy_ns()
345 write_lock_irqsave(&ns->labels.lock, flags); in destroy_ns()
348 write_unlock_irqrestore(&ns->labels.lock, flags); in destroy_ns()
351 mutex_unlock(&ns->lock); in destroy_ns()