Lines Matching refs:cache_lock

425     static DEFINE_MUTEX(cache_lock);
430 /* Must be holding cache_lock */
443 /* Must be holding cache_lock */
452 /* Must be holding cache_lock */
477 mutex_lock(&cache_lock);
479 mutex_unlock(&cache_lock);
485 mutex_lock(&cache_lock);
487 mutex_unlock(&cache_lock);
495 mutex_lock(&cache_lock);
501 mutex_unlock(&cache_lock);
505 Da notare che ci assicuriamo sempre di trattenere cache_lock quando
534 -static DEFINE_MUTEX(cache_lock);
535 +static DEFINE_SPINLOCK(cache_lock);
551 - mutex_lock(&cache_lock);
552 + spin_lock_irqsave(&cache_lock, flags);
554 - mutex_unlock(&cache_lock);
555 + spin_unlock_irqrestore(&cache_lock, flags);
561 - mutex_lock(&cache_lock);
564 + spin_lock_irqsave(&cache_lock, flags);
566 - mutex_unlock(&cache_lock);
567 + spin_unlock_irqrestore(&cache_lock, flags);
576 - mutex_lock(&cache_lock);
577 + spin_lock_irqsave(&cache_lock, flags);
583 - mutex_unlock(&cache_lock);
584 + spin_unlock_irqrestore(&cache_lock, flags);
606 Il primo problema è che utilizziamo ``cache_lock`` per proteggere gli oggetti:
657 + spin_lock_irqsave(&cache_lock, flags);
659 + spin_unlock_irqrestore(&cache_lock, flags);
666 + spin_lock_irqsave(&cache_lock, flags);
668 + spin_unlock_irqrestore(&cache_lock, flags);
671 /* Must be holding cache_lock */
688 spin_lock_irqsave(&cache_lock, flags);
691 spin_unlock_irqrestore(&cache_lock, flags);
701 spin_lock_irqsave(&cache_lock, flags);
709 spin_unlock_irqrestore(&cache_lock, flags);
769 - spin_lock_irqsave(&cache_lock, flags);
771 - spin_unlock_irqrestore(&cache_lock, flags);
780 - spin_lock_irqsave(&cache_lock, flags);
782 - spin_unlock_irqrestore(&cache_lock, flags);
786 /* Must be holding cache_lock */
803 spin_lock_irqsave(&cache_lock, flags);
806 spin_lock_irqsave(&cache_lock, flags);
811 spin_unlock_irqrestore(&cache_lock, flags);
822 - Si può togliere static da ``cache_lock`` e dire agli utenti che devono
829 - Si può decidere che ``cache_lock`` protegge solo la memoria stessa, ed
855 + /* These two protected by cache_lock. */
869 static DEFINE_SPINLOCK(cache_lock);
876 spin_lock_irqsave(&cache_lock, flags);
880 protetto da ``cache_lock`` piuttosto che dal *lock* dell'oggetto; questo
1193 - /* These two protected by cache_lock. */
1222 /* Must be holding cache_lock */
1233 /* Must be holding cache_lock */
1247 - spin_lock_irqsave(&cache_lock, flags);
1252 - spin_unlock_irqrestore(&cache_lock, flags);