Lines Matching refs:cache_lock

420     static DEFINE_MUTEX(cache_lock);
425 /* Must be holding cache_lock */
438 /* Must be holding cache_lock */
447 /* Must be holding cache_lock */
472 mutex_lock(&cache_lock);
474 mutex_unlock(&cache_lock);
480 mutex_lock(&cache_lock);
482 mutex_unlock(&cache_lock);
490 mutex_lock(&cache_lock);
496 mutex_unlock(&cache_lock);
500 Da notare che ci assicuriamo sempre di trattenere cache_lock quando
529 -static DEFINE_MUTEX(cache_lock);
530 +static DEFINE_SPINLOCK(cache_lock);
546 - mutex_lock(&cache_lock);
547 + spin_lock_irqsave(&cache_lock, flags);
549 - mutex_unlock(&cache_lock);
550 + spin_unlock_irqrestore(&cache_lock, flags);
556 - mutex_lock(&cache_lock);
559 + spin_lock_irqsave(&cache_lock, flags);
561 - mutex_unlock(&cache_lock);
562 + spin_unlock_irqrestore(&cache_lock, flags);
571 - mutex_lock(&cache_lock);
572 + spin_lock_irqsave(&cache_lock, flags);
578 - mutex_unlock(&cache_lock);
579 + spin_unlock_irqrestore(&cache_lock, flags);
601 Il primo problema è che utilizziamo ``cache_lock`` per proteggere gli oggetti:
652 + spin_lock_irqsave(&cache_lock, flags);
654 + spin_unlock_irqrestore(&cache_lock, flags);
661 + spin_lock_irqsave(&cache_lock, flags);
663 + spin_unlock_irqrestore(&cache_lock, flags);
666 /* Must be holding cache_lock */
683 spin_lock_irqsave(&cache_lock, flags);
686 spin_unlock_irqrestore(&cache_lock, flags);
696 spin_lock_irqsave(&cache_lock, flags);
704 spin_unlock_irqrestore(&cache_lock, flags);
764 - spin_lock_irqsave(&cache_lock, flags);
766 - spin_unlock_irqrestore(&cache_lock, flags);
775 - spin_lock_irqsave(&cache_lock, flags);
777 - spin_unlock_irqrestore(&cache_lock, flags);
781 /* Must be holding cache_lock */
798 spin_lock_irqsave(&cache_lock, flags);
801 spin_lock_irqsave(&cache_lock, flags);
806 spin_unlock_irqrestore(&cache_lock, flags);
817 - Si può togliere static da ``cache_lock`` e dire agli utenti che devono
824 - Si può decidere che ``cache_lock`` protegge solo la memoria stessa, ed
850 + /* These two protected by cache_lock. */
864 static DEFINE_SPINLOCK(cache_lock);
871 spin_lock_irqsave(&cache_lock, flags);
875 protetto da ``cache_lock`` piuttosto che dal *lock* dell'oggetto; questo
1186 - /* These two protected by cache_lock. */
1215 /* Must be holding cache_lock */
1226 /* Must be holding cache_lock */
1240 - spin_lock_irqsave(&cache_lock, flags);
1245 - spin_unlock_irqrestore(&cache_lock, flags);