Lines Matching refs:cache_lock

423     static DEFINE_MUTEX(cache_lock);
428 /* Must be holding cache_lock */
441 /* Must be holding cache_lock */
450 /* Must be holding cache_lock */
475 mutex_lock(&cache_lock);
477 mutex_unlock(&cache_lock);
483 mutex_lock(&cache_lock);
485 mutex_unlock(&cache_lock);
493 mutex_lock(&cache_lock);
499 mutex_unlock(&cache_lock);
503 Da notare che ci assicuriamo sempre di trattenere cache_lock quando
532 -static DEFINE_MUTEX(cache_lock);
533 +static DEFINE_SPINLOCK(cache_lock);
549 - mutex_lock(&cache_lock);
550 + spin_lock_irqsave(&cache_lock, flags);
552 - mutex_unlock(&cache_lock);
553 + spin_unlock_irqrestore(&cache_lock, flags);
559 - mutex_lock(&cache_lock);
562 + spin_lock_irqsave(&cache_lock, flags);
564 - mutex_unlock(&cache_lock);
565 + spin_unlock_irqrestore(&cache_lock, flags);
574 - mutex_lock(&cache_lock);
575 + spin_lock_irqsave(&cache_lock, flags);
581 - mutex_unlock(&cache_lock);
582 + spin_unlock_irqrestore(&cache_lock, flags);
604 Il primo problema è che utilizziamo ``cache_lock`` per proteggere gli oggetti:
655 + spin_lock_irqsave(&cache_lock, flags);
657 + spin_unlock_irqrestore(&cache_lock, flags);
664 + spin_lock_irqsave(&cache_lock, flags);
666 + spin_unlock_irqrestore(&cache_lock, flags);
669 /* Must be holding cache_lock */
686 spin_lock_irqsave(&cache_lock, flags);
689 spin_unlock_irqrestore(&cache_lock, flags);
699 spin_lock_irqsave(&cache_lock, flags);
707 spin_unlock_irqrestore(&cache_lock, flags);
767 - spin_lock_irqsave(&cache_lock, flags);
769 - spin_unlock_irqrestore(&cache_lock, flags);
778 - spin_lock_irqsave(&cache_lock, flags);
780 - spin_unlock_irqrestore(&cache_lock, flags);
784 /* Must be holding cache_lock */
801 spin_lock_irqsave(&cache_lock, flags);
804 spin_lock_irqsave(&cache_lock, flags);
809 spin_unlock_irqrestore(&cache_lock, flags);
820 - Si può togliere static da ``cache_lock`` e dire agli utenti che devono
827 - Si può decidere che ``cache_lock`` protegge solo la memoria stessa, ed
853 + /* These two protected by cache_lock. */
867 static DEFINE_SPINLOCK(cache_lock);
874 spin_lock_irqsave(&cache_lock, flags);
878 protetto da ``cache_lock`` piuttosto che dal *lock* dell'oggetto; questo
1191 - /* These two protected by cache_lock. */
1220 /* Must be holding cache_lock */
1231 /* Must be holding cache_lock */
1245 - spin_lock_irqsave(&cache_lock, flags);
1250 - spin_unlock_irqrestore(&cache_lock, flags);