Skip to content

Commit

Permalink
Fix dmu_objset_find_dp() KM_SLEEP warning
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dweeezil authored and behlendorf committed Sep 11, 2013
1 parent 13fe019 commit 4cf652e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/dmu_objset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4cf652e

Please sign in to comment.