Lines Matching defs:mutex

44 static inline struct mutex *kernfs_open_file_mutex_ptr(struct kernfs_node *kn)
49 static inline struct mutex *kernfs_open_file_mutex_lock(struct kernfs_node *kn)
93 * the caller guarantees that this mutex is being held, other updaters can't
162 * @of->mutex nests outside active ref and is primarily to ensure that
165 mutex_lock(&of->mutex);
207 mutex_unlock(&of->mutex);
248 * @of->mutex nests outside active ref and is used both to ensure that
251 mutex_lock(&of->mutex);
254 mutex_unlock(&of->mutex);
267 mutex_unlock(&of->mutex);
333 * @of->mutex nests outside active ref and is used both to ensure that
336 mutex_lock(&of->mutex);
338 mutex_unlock(&of->mutex);
350 mutex_unlock(&of->mutex);
457 * mmap path and of->mutex are prone to triggering spurious lockdep
460 * without grabbing @of->mutex by testing HAS_MMAP flag. See the
466 mutex_lock(&of->mutex);
506 mutex_unlock(&of->mutex);
529 struct mutex *mutex;
531 mutex = kernfs_open_file_mutex_lock(kn);
538 mutex_unlock(mutex);
551 mutex_unlock(mutex);
574 struct mutex *mutex;
576 mutex = kernfs_open_file_mutex_lock(kn);
580 mutex_unlock(mutex);
600 mutex_unlock(mutex);
640 * @of->mutex for files which implement mmap. This is a rather
642 * mm->mmap_lock - mmap nests @of->mutex under mm->mmap_lock and
644 * which mm->mmap_lock nests, while holding @of->mutex. As each
645 * open file has a separate mutex, it's okay as long as those don't
656 * look that way and give @of->mutex different static lockdep keys.
659 mutex_init(&of->mutex);
661 mutex_init(&of->mutex);
663 mutex_init(&of->mutex);
716 /* nobody has access to @of yet, skip @of->mutex */
745 * @kernfs_open_file_mutex_ptr(kn) is enough. @of->mutex can't be used
769 struct mutex *mutex;
771 mutex = kernfs_open_file_mutex_lock(kn);
773 mutex_unlock(mutex);
808 struct mutex *mutex;
810 mutex = kernfs_open_file_mutex_lock(kn);
813 mutex_unlock(mutex);
831 mutex_unlock(mutex);
885 * @of->mutex nests outside active ref and is primarily to ensure that
888 mutex_lock(&of->mutex);
890 mutex_unlock(&of->mutex);
901 mutex_unlock(&of->mutex);