Fix dmu_objset_find_dp() KM_SLEEP warning

After the restructuring in 13fe019 The 'zfs rename' command will
result in a KM_SLEEP being called in the sync context.  This may
deadlock due to reclaim so it was changed to KM_PUSHPAGE.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1711
This commit is contained in:
Tim Chase 2013-09-11 11:47:43 -07:00 committed by Brian Behlendorf
parent 13fe019870
commit 4cf652e5d4

View File

@ -1519,7 +1519,7 @@ dmu_objset_find_dp(dsl_pool_t *dp, uint64_t ddobj,
}
thisobj = dd->dd_phys->dd_head_dataset_obj;
attr = kmem_alloc(sizeof (zap_attribute_t), KM_SLEEP);
attr = kmem_alloc(sizeof (zap_attribute_t), KM_PUSHPAGE);
/*
* Iterate over all children.