Lines Matching refs:hash_lock

1040 	kmutex_t *hash_lock = BUF_HASH_LOCK(idx);  in buf_hash_find()  local
1043 mutex_enter(hash_lock); in buf_hash_find()
1047 *lockp = hash_lock; in buf_hash_find()
1051 mutex_exit(hash_lock); in buf_hash_find()
1067 kmutex_t *hash_lock = BUF_HASH_LOCK(idx); in buf_hash_insert() local
1076 *lockp = hash_lock; in buf_hash_insert()
1077 mutex_enter(hash_lock); in buf_hash_insert()
1079 ASSERT(MUTEX_HELD(hash_lock)); in buf_hash_insert()
1919 arc_fill_hdr_crypt(arc_buf_hdr_t *hdr, kmutex_t *hash_lock, spa_t *spa, in arc_fill_hdr_crypt() argument
1926 if (hash_lock != NULL) in arc_fill_hdr_crypt()
1927 mutex_enter(hash_lock); in arc_fill_hdr_crypt()
1950 if (hash_lock != NULL) in arc_fill_hdr_crypt()
1951 mutex_exit(hash_lock); in arc_fill_hdr_crypt()
1956 if (hash_lock != NULL) in arc_fill_hdr_crypt()
1957 mutex_exit(hash_lock); in arc_fill_hdr_crypt()
2008 kmutex_t *hash_lock = (flags & ARC_FILL_LOCKED) ? NULL : HDR_LOCK(hdr); in arc_buf_fill() local
2037 error = arc_fill_hdr_crypt(hdr, hash_lock, spa, in arc_buf_fill()
2042 if (hash_lock != NULL) in arc_buf_fill()
2043 mutex_enter(hash_lock); in arc_buf_fill()
2045 if (hash_lock != NULL) in arc_buf_fill()
2046 mutex_exit(hash_lock); in arc_buf_fill()
2070 if (hash_lock != NULL) in arc_buf_fill()
2071 mutex_enter(hash_lock); in arc_buf_fill()
2073 if (hash_lock != NULL) in arc_buf_fill()
2074 mutex_exit(hash_lock); in arc_buf_fill()
2157 if (hash_lock != NULL) in arc_buf_fill()
2158 mutex_enter(hash_lock); in arc_buf_fill()
2160 if (hash_lock != NULL) in arc_buf_fill()
2161 mutex_exit(hash_lock); in arc_buf_fill()
3710 kmutex_t *hash_lock = HDR_LOCK(hdr); in arc_buf_destroy() local
3711 mutex_enter(hash_lock); in arc_buf_destroy()
3715 ASSERT3P(hash_lock, ==, HDR_LOCK(hdr)); in arc_buf_destroy()
3721 mutex_exit(hash_lock); in arc_buf_destroy()
3890 kmutex_t *hash_lock; in arc_evict_state_impl() local
3933 hash_lock = HDR_LOCK(hdr); in arc_evict_state_impl()
3944 ASSERT(!MUTEX_HELD(hash_lock)); in arc_evict_state_impl()
3946 if (mutex_tryenter(hash_lock)) { in arc_evict_state_impl()
3949 mutex_exit(hash_lock); in arc_evict_state_impl()
5318 kmutex_t *hash_lock = HDR_LOCK(hdr); in arc_buf_access() local
5319 mutex_enter(hash_lock); in arc_buf_access()
5322 mutex_exit(hash_lock); in arc_buf_access()
5333 mutex_exit(hash_lock); in arc_buf_access()
5394 kmutex_t *hash_lock = NULL; in arc_read_done() local
5415 found = buf_hash_find(hdr->b_spa, zio->io_bp, &hash_lock); in arc_read_done()
5420 ASSERT3P(hash_lock, !=, NULL); in arc_read_done()
5545 ASSERT(callback_cnt < 2 || hash_lock != NULL); in arc_read_done()
5560 if (hash_lock != NULL) in arc_read_done()
5561 mutex_exit(hash_lock); in arc_read_done()
5607 kmutex_t *hash_lock = NULL; in arc_cached() local
5614 hdr = buf_hash_find(guid, bp, &hash_lock); in arc_cached()
5645 mutex_exit(hash_lock); in arc_cached()
5674 kmutex_t *hash_lock = NULL; in arc_read() local
5710 hdr = buf_hash_find(guid, bp, &hash_lock); in arc_read()
5731 mutex_exit(hash_lock); in arc_read()
5738 mutex_exit(hash_lock); in arc_read()
5805 mutex_exit(hash_lock); in arc_read()
5864 mutex_exit(hash_lock); in arc_read()
5885 if (hash_lock != NULL) in arc_read()
5886 mutex_exit(hash_lock); in arc_read()
5893 } else if (hash_lock != NULL) { in arc_read()
5909 if (hash_lock != NULL) in arc_read()
5910 mutex_exit(hash_lock); in arc_read()
5932 exists = buf_hash_insert(hdr, &hash_lock); in arc_read()
5936 mutex_exit(hash_lock); in arc_read()
5985 mutex_exit(hash_lock); in arc_read()
6174 if (hash_lock != NULL) in arc_read()
6175 mutex_exit(hash_lock); in arc_read()
6192 if (hash_lock != NULL) in arc_read()
6193 mutex_enter(hash_lock); in arc_read()
6230 if (hash_lock != NULL) in arc_read()
6231 mutex_exit(hash_lock); in arc_read()
6354 kmutex_t *hash_lock; in arc_freed() local
6359 hdr = buf_hash_find(guid, bp, &hash_lock); in arc_freed()
6387 mutex_exit(hash_lock); in arc_freed()
6389 mutex_exit(hash_lock); in arc_freed()
6440 kmutex_t *hash_lock = HDR_LOCK(hdr); in arc_release() local
6441 mutex_enter(hash_lock); in arc_release()
6449 ASSERT3P(hash_lock, ==, HDR_LOCK(hdr)); in arc_release()
6563 mutex_exit(hash_lock); in arc_release()
6590 mutex_exit(hash_lock); in arc_release()
6812 kmutex_t *hash_lock; in arc_write_done() local
6818 exists = buf_hash_insert(hdr, &hash_lock); in arc_write_done()
6833 mutex_exit(hash_lock); in arc_write_done()
6834 exists = buf_hash_insert(hdr, &hash_lock); in arc_write_done()
6856 mutex_exit(hash_lock); in arc_write_done()
8453 kmutex_t *hash_lock; in l2arc_write_done() local
8476 hash_lock = HDR_LOCK(hdr); in l2arc_write_done()
8483 if (!mutex_tryenter(hash_lock)) { in l2arc_write_done()
8507 mutex_enter(hash_lock); in l2arc_write_done()
8508 mutex_exit(hash_lock); in l2arc_write_done()
8547 mutex_exit(hash_lock); in l2arc_write_done()
8726 kmutex_t *hash_lock; in l2arc_read_done() local
8740 hash_lock = HDR_LOCK(hdr); in l2arc_read_done()
8741 mutex_enter(hash_lock); in l2arc_read_done()
8742 ASSERT3P(hash_lock, ==, HDR_LOCK(hdr)); in l2arc_read_done()
8807 mutex_exit(hash_lock); in l2arc_read_done()
8849 mutex_exit(hash_lock); in l2arc_read_done()
8852 mutex_exit(hash_lock); in l2arc_read_done()
8940 kmutex_t *hash_lock; in l2arc_evict() local
9060 hash_lock = HDR_LOCK(hdr); in l2arc_evict()
9067 if (!mutex_tryenter(hash_lock)) { in l2arc_evict()
9073 mutex_enter(hash_lock); in l2arc_evict()
9074 mutex_exit(hash_lock); in l2arc_evict()
9093 mutex_exit(hash_lock); in l2arc_evict()
9121 mutex_exit(hash_lock); in l2arc_evict()
9351 kmutex_t *hash_lock; in l2arc_write_buffers() local
9354 hash_lock = HDR_LOCK(hdr); in l2arc_write_buffers()
9355 if (!mutex_tryenter(hash_lock)) { in l2arc_write_buffers()
9370 mutex_exit(hash_lock); in l2arc_write_buffers()
9375 mutex_exit(hash_lock); in l2arc_write_buffers()
9396 mutex_exit(hash_lock); in l2arc_write_buffers()
9444 mutex_exit(hash_lock); in l2arc_write_buffers()
9479 mutex_exit(hash_lock); in l2arc_write_buffers()
10607 kmutex_t *hash_lock; in l2arc_hdr_restore() local
10637 exists = buf_hash_insert(hdr, &hash_lock); in l2arc_hdr_restore()
10666 mutex_exit(hash_lock); in l2arc_hdr_restore()