Lines Matching defs:hash_lock

1158 	kmutex_t *hash_lock = BUF_HASH_LOCK(idx);
1161 mutex_enter(hash_lock);
1165 *lockp = hash_lock;
1169 mutex_exit(hash_lock);
1185 kmutex_t *hash_lock = BUF_HASH_LOCK(idx);
1194 *lockp = hash_lock;
1195 mutex_enter(hash_lock);
1197 ASSERT(MUTEX_HELD(hash_lock));
1744 kmutex_t *hash_lock;
1755 hash_lock = HDR_LOCK(hdr);
1756 mutex_enter(hash_lock);
1762 mutex_exit(hash_lock);
1769 * the hash_lock must be held or the hdr must be undiscoverable. This
2095 remove_reference(arc_buf_hdr_t *hdr, kmutex_t *hash_lock, void *tag)
2101 ASSERT(state == arc_anon || MUTEX_HELD(hash_lock));
2123 kmutex_t *hash_lock)
2151 ASSERT(MUTEX_HELD(hash_lock));
2439 * hold the hash_lock or be undiscoverable.
2713 * hold the hash_lock or be undiscoverable.
3109 kmutex_t *hash_lock = HDR_LOCK(hdr);
3119 mutex_enter(hash_lock);
3122 ASSERT3P(hash_lock, ==, HDR_LOCK(hdr));
3126 (void) remove_reference(hdr, hash_lock, tag);
3128 mutex_exit(hash_lock);
3144 arc_evict_hdr(arc_buf_hdr_t *hdr, kmutex_t *hash_lock)
3149 ASSERT(MUTEX_HELD(hash_lock));
3180 arc_change_state(arc_l2c_only, hdr, hash_lock);
3188 arc_change_state(arc_anon, hdr, hash_lock);
3244 arc_change_state(evicted_state, hdr, hash_lock);
3260 kmutex_t *hash_lock;
3305 hash_lock = HDR_LOCK(hdr);
3316 ASSERT(!MUTEX_HELD(hash_lock));
3318 if (mutex_tryenter(hash_lock)) {
3319 uint64_t evicted = arc_evict_hdr(hdr, hash_lock);
3320 mutex_exit(hash_lock);
3370 * it can't get a hash_lock on, and so, may not catch all candidates.
4379 arc_access(arc_buf_hdr_t *hdr, kmutex_t *hash_lock)
4383 ASSERT(MUTEX_HELD(hash_lock));
4396 arc_change_state(arc_mru, hdr, hash_lock);
4435 arc_change_state(arc_mfu, hdr, hash_lock);
4457 arc_change_state(new_state, hdr, hash_lock);
4472 /* link protected by hash_lock */
4496 arc_change_state(new_state, hdr, hash_lock);
4506 arc_change_state(arc_mfu, hdr, hash_lock);
4556 kmutex_t *hash_lock = NULL;
4578 &hash_lock);
4583 ASSERT3P(hash_lock, !=, NULL);
4607 if (hash_lock && no_zio_error && hdr->b_l1hdr.b_state == arc_anon) {
4614 arc_access(hdr, hash_lock);
4653 arc_change_state(arc_anon, hdr, hash_lock);
4660 * Broadcast before we drop the hash_lock to avoid the possibility
4666 if (hash_lock != NULL) {
4667 mutex_exit(hash_lock);
4721 kmutex_t *hash_lock = NULL;
4735 hdr = buf_hash_find(guid, bp, &hash_lock);
4776 cv_wait(&hdr->b_l1hdr.b_cv, hash_lock);
4777 mutex_exit(hash_lock);
4797 mutex_exit(hash_lock);
4800 mutex_exit(hash_lock);
4832 arc_access(hdr, hash_lock);
4835 mutex_exit(hash_lock);
4862 exists = buf_hash_insert(hdr, &hash_lock);
4866 mutex_exit(hash_lock);
4898 arc_access(hdr, hash_lock);
4950 if (hash_lock != NULL)
4951 mutex_exit(hash_lock);
5062 kmutex_t *hash_lock;
5067 hdr = buf_hash_find(guid, bp, &hash_lock);
5095 arc_change_state(arc_anon, hdr, hash_lock);
5097 mutex_exit(hash_lock);
5099 mutex_exit(hash_lock);
5153 kmutex_t *hash_lock = HDR_LOCK(hdr);
5154 mutex_enter(hash_lock);
5157 * This assignment is only valid as long as the hash_lock is
5162 ASSERT3P(hash_lock, ==, HDR_LOCK(hdr));
5198 (void) remove_reference(hdr, hash_lock, tag);
5268 mutex_exit(hash_lock);
5295 arc_change_state(arc_anon, hdr, hash_lock);
5297 mutex_exit(hash_lock);
5460 kmutex_t *hash_lock;
5466 exists = buf_hash_insert(hdr, &hash_lock);
5479 arc_change_state(arc_anon, exists, hash_lock);
5480 mutex_exit(hash_lock);
5482 exists = buf_hash_insert(hdr, &hash_lock);
5501 arc_access(hdr, hash_lock);
5502 mutex_exit(hash_lock);
6351 kmutex_t *hash_lock;
6376 hash_lock = HDR_LOCK(hdr);
6383 if (!mutex_tryenter(hash_lock)) {
6407 mutex_enter(hash_lock);
6408 mutex_exit(hash_lock);
6440 mutex_exit(hash_lock);
6465 kmutex_t *hash_lock;
6478 hash_lock = HDR_LOCK(hdr);
6479 mutex_enter(hash_lock);
6480 ASSERT3P(hash_lock, ==, HDR_LOCK(hdr));
6493 mutex_exit(hash_lock);
6497 mutex_exit(hash_lock);
6584 kmutex_t *hash_lock;
6614 hash_lock = HDR_LOCK(hdr);
6621 if (!mutex_tryenter(hash_lock)) {
6627 mutex_enter(hash_lock);
6628 mutex_exit(hash_lock);
6638 mutex_exit(hash_lock);
6649 mutex_exit(hash_lock);
6661 arc_change_state(arc_anon, hdr, hash_lock);
6681 mutex_exit(hash_lock);
6738 kmutex_t *hash_lock;
6745 hash_lock = HDR_LOCK(hdr);
6746 if (!mutex_tryenter(hash_lock)) {
6758 mutex_exit(hash_lock);
6763 mutex_exit(hash_lock);
6769 mutex_exit(hash_lock);
6858 mutex_exit(hash_lock);