Lines Matching refs:cache_lock
406 static DEFINE_MUTEX(cache_lock);
411 /* Must be holding cache_lock */
424 /* Must be holding cache_lock */
433 /* Must be holding cache_lock */
458 mutex_lock(&cache_lock);
460 mutex_unlock(&cache_lock);
466 mutex_lock(&cache_lock);
468 mutex_unlock(&cache_lock);
476 mutex_lock(&cache_lock);
482 mutex_unlock(&cache_lock);
486 Note that we always make sure we have the cache_lock when we add,
515 -static DEFINE_MUTEX(cache_lock);
516 +static DEFINE_SPINLOCK(cache_lock);
532 - mutex_lock(&cache_lock);
533 + spin_lock_irqsave(&cache_lock, flags);
535 - mutex_unlock(&cache_lock);
536 + spin_unlock_irqrestore(&cache_lock, flags);
542 - mutex_lock(&cache_lock);
545 + spin_lock_irqsave(&cache_lock, flags);
547 - mutex_unlock(&cache_lock);
548 + spin_unlock_irqrestore(&cache_lock, flags);
557 - mutex_lock(&cache_lock);
558 + spin_lock_irqsave(&cache_lock, flags);
564 - mutex_unlock(&cache_lock);
565 + spin_unlock_irqrestore(&cache_lock, flags);
588 The first problem is that we use the ``cache_lock`` to protect objects:
637 + spin_lock_irqsave(&cache_lock, flags);
639 + spin_unlock_irqrestore(&cache_lock, flags);
646 + spin_lock_irqsave(&cache_lock, flags);
648 + spin_unlock_irqrestore(&cache_lock, flags);
651 /* Must be holding cache_lock */
668 spin_lock_irqsave(&cache_lock, flags);
671 spin_unlock_irqrestore(&cache_lock, flags);
681 spin_lock_irqsave(&cache_lock, flags);
689 spin_unlock_irqrestore(&cache_lock, flags);
749 - spin_lock_irqsave(&cache_lock, flags);
751 - spin_unlock_irqrestore(&cache_lock, flags);
760 - spin_lock_irqsave(&cache_lock, flags);
762 - spin_unlock_irqrestore(&cache_lock, flags);
766 /* Must be holding cache_lock */
783 spin_lock_irqsave(&cache_lock, flags);
786 spin_lock_irqsave(&cache_lock, flags);
791 spin_unlock_irqrestore(&cache_lock, flags);
802 - You can make ``cache_lock`` non-static, and tell people to grab that
809 - You can make the ``cache_lock`` protect only the cache itself, and
836 + /* These two protected by cache_lock. */
850 static DEFINE_SPINLOCK(cache_lock);
857 spin_lock_irqsave(&cache_lock, flags);
861 ``cache_lock`` rather than the per-object lock: this is because it (like
1161 - /* These two protected by cache_lock. */
1190 /* Must be holding cache_lock */
1201 /* Must be holding cache_lock */
1215 - spin_lock_irqsave(&cache_lock, flags);
1220 - spin_unlock_irqrestore(&cache_lock, flags);