[LU-4831] osd-zfs: osd_mkreg() sets block size after object creation is inefficient Created: 28/Mar/14 Updated: 06/Apr/14 Resolved: 06/Apr/14 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Isaac Huang (Inactive) | Assignee: | Isaac Huang (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | zfs | ||
| Rank (Obsolete): | 13318 |
| Description |
|
Currently osd_mkreg() calls dmu_object_set_blocksize() after __osd_object_create()->dmu_object_alloc(). It'd be more efficient to set the block size in dmu_object_alloc() by using the blocksize argument, which eliminates wasteful calls like dnode_hold() in dmu_object_set_blocksize(). |
| Comments |
| Comment by Isaac Huang (Inactive) [ 28/Mar/14 ] |
| Comment by Isaac Huang (Inactive) [ 06/Apr/14 ] |
|
This should be fixed as part of |