Lines Matching defs:zonehash_lock

150  *   zonehash_lock: This is a top-level global lock used to protect the
170 * pool_lock --> cpu_lock --> zonehash_lock --> zone_status_lock -->
174 * zonehash_lock --> a_lock --> pidlock --> p_lock --> zone_mem_lock
175 * zonehash_lock --> a_lock --> pidlock --> p_lock --> zone_nlwps_lock
299 static kmutex_t zonehash_lock;
316 * List of active zones, protected by zonehash_lock.
440 * serialized by zonehash_lock) in progress at the same time, but not
462 * called with zonehash_lock held.
464 ASSERT(MUTEX_NOT_HELD(&zonehash_lock));
546 * most recent list of keys. Then under zonehash_lock we walk the zones
636 mutex_enter(&zonehash_lock); /* stop the world */
673 mutex_exit(&zonehash_lock);
713 mutex_enter(&zonehash_lock);
744 mutex_exit(&zonehash_lock);
752 mutex_enter(&zonehash_lock);
766 mutex_exit(&zonehash_lock);
826 ASSERT(MUTEX_HELD(&zonehash_lock));
932 * The applyfn has to drop zonehash_lock if it does some work, and
950 mutex_enter(&zonehash_lock);
953 if ((applyfn)(&zonehash_lock, B_FALSE, zone, key)) {
960 mutex_exit(&zonehash_lock);
966 * The applyfn has to drop zonehash_lock if it does some work, and
1763 ASSERT(MUTEX_HELD(&zonehash_lock));
2051 mutex_init(&zonehash_lock, NULL, MUTEX_DEFAULT, NULL);
2305 mutex_enter(&zonehash_lock);
2332 mutex_exit(&zonehash_lock);
2819 * Grabbing zonehash_lock here effectively synchronizes with
2822 mutex_enter(&zonehash_lock);
2824 mutex_exit(&zonehash_lock);
2938 * Grabbing zonehash_lock here effectively synchronizes with
2941 mutex_enter(&zonehash_lock);
2943 mutex_exit(&zonehash_lock);
3025 ASSERT(MUTEX_HELD(&zonehash_lock));
3039 ASSERT(MUTEX_HELD(&zonehash_lock));
3057 ASSERT(MUTEX_HELD(&zonehash_lock));
3078 mutex_enter(&zonehash_lock);
3080 mutex_exit(&zonehash_lock);
3088 mutex_exit(&zonehash_lock);
3092 mutex_exit(&zonehash_lock);
3105 mutex_enter(&zonehash_lock);
3107 mutex_exit(&zonehash_lock);
3116 mutex_exit(&zonehash_lock);
3120 mutex_exit(&zonehash_lock);
3133 mutex_enter(&zonehash_lock);
3135 mutex_exit(&zonehash_lock);
3143 mutex_exit(&zonehash_lock);
3147 mutex_exit(&zonehash_lock);
3178 mutex_enter(&zonehash_lock);
3193 mutex_exit(&zonehash_lock);
3216 mutex_enter(&zonehash_lock);
3280 mutex_exit(&zonehash_lock);
3387 * zonehash_lock. See comment at the beginning of the file for a list of
3397 mutex_enter(&zonehash_lock);
3414 mutex_exit(&zonehash_lock);
4027 * Note that after we drop the locks below (zonehash_lock in
4034 mutex_enter(&zonehash_lock);
4043 mutex_exit(&zonehash_lock);
4145 * Holding zonehash_lock prevents race conditions with
4149 ASSERT(MUTEX_HELD(&zonehash_lock));
4182 ASSERT(MUTEX_HELD(&zonehash_lock));
4617 mutex_enter(&zonehash_lock);
4690 mutex_exit(&zonehash_lock);
4705 mutex_enter(&zonehash_lock);
4751 mutex_exit(&zonehash_lock);
4793 mutex_enter(&zonehash_lock);
4799 mutex_exit(&zonehash_lock);
4806 mutex_exit(&zonehash_lock);
4813 mutex_exit(&zonehash_lock);
4840 * We need to drop zonehash_lock before killing all
4844 ASSERT(MUTEX_NOT_HELD(&zonehash_lock));
4914 mutex_enter(&zonehash_lock);
4920 mutex_exit(&zonehash_lock);
4925 * We have to drop zonehash_lock before calling block_mounts.
4929 mutex_exit(&zonehash_lock);
4944 mutex_enter(&zonehash_lock);
4952 mutex_exit(&zonehash_lock);
4963 mutex_exit(&zonehash_lock);
4988 * zonehash_lock. The zone is empty.
5001 mutex_exit(&zonehash_lock);
5182 mutex_enter(&zonehash_lock);
5188 mutex_exit(&zonehash_lock);
5193 mutex_exit(&zonehash_lock);
5200 mutex_exit(&zonehash_lock);
5207 mutex_exit(&zonehash_lock);
5221 mutex_enter(&zonehash_lock);
5232 mutex_exit(&zonehash_lock);
5245 * zonehash_lock... we can go ahead and cleanup the
5269 &zone_destroy_cv, &zonehash_lock, wait_time,
5282 mutex_exit(&zonehash_lock);
5309 if (cv_wait_sig(&zone_destroy_cv, &zonehash_lock) == 0) {
5311 mutex_exit(&zonehash_lock);
5354 mutex_exit(&zonehash_lock);
5396 mutex_enter(&zonehash_lock);
5398 mutex_exit(&zonehash_lock);
5403 mutex_exit(&zonehash_lock);
5407 mutex_exit(&zonehash_lock);
5482 * Since we're not holding zonehash_lock, the zone status
5705 mutex_enter(&zonehash_lock);
5707 mutex_exit(&zonehash_lock);
5711 mutex_exit(&zonehash_lock);
5909 mutex_enter(&zonehash_lock);
5911 mutex_exit(&zonehash_lock);
5918 mutex_exit(&zonehash_lock);
5937 mutex_exit(&zonehash_lock);
5957 mutex_exit(&zonehash_lock);
5972 mutex_exit(&zonehash_lock);
5981 mutex_exit(&zonehash_lock);
5986 * We want to momentarily drop zonehash_lock while we optimistically
5991 mutex_exit(&zonehash_lock);
6022 mutex_enter(&zonehash_lock);
6024 * Make sure the zone hasn't moved on since we dropped zonehash_lock.
6030 mutex_exit(&zonehash_lock);
6210 mutex_exit(&zonehash_lock);
6315 mutex_enter(&zonehash_lock);
6342 mutex_exit(&zonehash_lock);
6345 mutex_enter(&zonehash_lock);
6356 mutex_exit(&zonehash_lock);
6409 mutex_enter(&zonehash_lock);
6419 mutex_exit(&zonehash_lock);
6423 mutex_exit(&zonehash_lock);
6801 mutex_enter(&zonehash_lock);
6823 mutex_exit(&zonehash_lock);
6975 mutex_enter(&zonehash_lock);
6999 mutex_exit(&zonehash_lock);
7046 mutex_enter(&zonehash_lock);
7050 mutex_exit(&zonehash_lock);
7062 mutex_exit(&zonehash_lock);
7110 mutex_enter(&zonehash_lock);
7119 mutex_exit(&zonehash_lock);
7177 * it is called elsewhere the zone could disappear after the zonehash_lock
7192 mutex_enter(&zonehash_lock);
7197 mutex_exit(&zonehash_lock);