]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - module/zfs/refcount.c
Imported Upstream version 0.6.4.2
[mirror_zfs-debian.git] / module / zfs / refcount.c
index 49980efcc85d06e1797e200bff84510c79248946..4c460a2009673bfc24794d2fe908f75775c7dac7 100644 (file)
@@ -121,7 +121,7 @@ refcount_add_many(refcount_t *rc, uint64_t number, void *holder)
        int64_t count;
 
        if (rc->rc_tracked) {
-               ref = kmem_cache_alloc(reference_cache, KM_PUSHPAGE);
+               ref = kmem_cache_alloc(reference_cache, KM_SLEEP);
                ref->ref_holder = holder;
                ref->ref_number = number;
        }
@@ -165,7 +165,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_PUSHPAGE);
+                                   KM_SLEEP);
                                list_insert_head(&rc->rc_removed, ref);
                                rc->rc_removed_count++;
                                if (rc->rc_removed_count > reference_history) {