Lines Matching refs:lock
118 mutex_init(&ns->lock); in alloc_ns()
224 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns()
230 mutex_lock_nested(&ns->lock, ns->level); in __aa_create_ns()
235 mutex_unlock(&ns->lock); in __aa_create_ns()
243 mutex_unlock(&ns->lock); in __aa_create_ns()
261 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns()
286 mutex_lock_nested(&parent->lock, parent->level); in aa_prepare_ns()
292 mutex_unlock(&parent->lock); in aa_prepare_ns()
309 mutex_lock_nested(&ns->lock, ns->level); in destroy_ns()
319 write_lock_irqsave(&ns->labels.lock, flags); in destroy_ns()
322 write_unlock_irqrestore(&ns->labels.lock, flags); in destroy_ns()
325 mutex_unlock(&ns->lock); in destroy_ns()