[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 ]

Patch: http://review.whamcloud.com/#/c/9849/

Comment by Isaac Huang (Inactive) [ 06/Apr/14 ]

This should be fixed as part of LU-4865.

Generated at Sat Feb 10 01:46:13 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.