diff options
author | Massimo Maggi <[email protected]> | 2012-10-07 21:54:06 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-10-08 10:19:05 -0700 |
commit | beb999445adaa6d794f0d706ca8a0c835cb1468c (patch) | |
tree | 7e3155ca0a03d7d59ccca5e6023101ae6fdf9d75 /module/zfs/dmu_objset.c | |
parent | 7bd04f2d7d99780f190d4027e6e81fc0df11ba95 (diff) |
Switch KM_SLEEP to KM_PUSHPAGE
Prevent snapshot_check to initiate I/O during memory allocation.
Signed-off-by: Massimo Maggi <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1023
Diffstat (limited to 'module/zfs/dmu_objset.c')
-rw-r--r-- | module/zfs/dmu_objset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/dmu_objset.c b/module/zfs/dmu_objset.c index c1bc1de7b..628b23be1 100644 --- a/module/zfs/dmu_objset.c +++ b/module/zfs/dmu_objset.c @@ -848,7 +848,7 @@ snapshot_check(void *arg1, void *arg2, dmu_tx_t *tx) if (strlen(sn->htag) + MAX_TAG_PREFIX_LEN >= MAXNAMELEN) return (E2BIG); - sn->ha = kmem_alloc(sizeof (struct dsl_ds_holdarg), KM_SLEEP); + sn->ha = kmem_alloc(sizeof(struct dsl_ds_holdarg), KM_PUSHPAGE); sn->ha->temphold = B_TRUE; sn->ha->htag = sn->htag; } |