Lines Matching refs:lock
120 mutex_init(&ns->lock); in alloc_ns()
263 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns()
269 mutex_lock_nested(&ns->lock, ns->level); in __aa_create_ns()
274 mutex_unlock(&ns->lock); in __aa_create_ns()
282 mutex_unlock(&ns->lock); in __aa_create_ns()
300 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns()
325 mutex_lock_nested(&parent->lock, parent->level); in aa_prepare_ns()
331 mutex_unlock(&parent->lock); in aa_prepare_ns()
348 mutex_lock_nested(&ns->lock, ns->level); in destroy_ns()
358 write_lock_irqsave(&ns->labels.lock, flags); in destroy_ns()
361 write_unlock_irqrestore(&ns->labels.lock, flags); in destroy_ns()
364 mutex_unlock(&ns->lock); in destroy_ns()