Switch KM_SLEEP to KM_PUSHPAGE
[zfs.git] / module / zfs / refcount.c
index a615546..e43807c 100644 (file)
@@ -114,7 +114,7 @@ refcount_add_many(refcount_t *rc, uint64_t number, void *holder)
        int64_t count;
 
        if (reference_tracking_enable) {
-               ref = kmem_cache_alloc(reference_cache, KM_SLEEP);
+               ref = kmem_cache_alloc(reference_cache, KM_PUSHPAGE);
                ref->ref_holder = holder;
                ref->ref_number = number;
        }
@@ -158,7 +158,7 @@ refcount_remove_many(refcount_t *rc, uint64_t number, void *holder)
                        if (reference_history > 0) {
                                ref->ref_removed =
                                    kmem_cache_alloc(reference_history_cache,
-                                   KM_SLEEP);
+                                   KM_PUSHPAGE);
                                list_insert_head(&rc->rc_removed, ref);
                                rc->rc_removed_count++;
                                if (rc->rc_removed_count >= reference_history) {