diff options
Diffstat (limited to 'module/zfs/refcount.c')
-rw-r--r-- | module/zfs/refcount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/refcount.c b/module/zfs/refcount.c index a61554606..e43807c8e 100644 --- a/module/zfs/refcount.c +++ b/module/zfs/refcount.c @@ -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) { |