diff options
author | Tim Chase <[email protected]> | 2013-09-11 11:47:43 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-09-11 11:49:32 -0700 |
commit | 4cf652e5d4becca29df8c961daaa68f9c9c81245 (patch) | |
tree | 434fb5aabb0f50629b353de27d2e4e3b31c874f9 /module/zfs | |
parent | 13fe019870c8779bf2f5b3ff731b512cf89133ef (diff) |
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 <[email protected]>
Closes #1711
Diffstat (limited to 'module/zfs')
-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 97a224b91..73807b678 100644 --- a/module/zfs/dmu_objset.c +++ b/module/zfs/dmu_objset.c @@ -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. |