[LU-4952] osd_declare_write_commit may give wrong offset & size to dmu_tx_hold_write Created: 24/Apr/14  Updated: 20/May/14  Resolved: 20/May/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.6.0, Lustre 2.5.2

Type: Bug Priority: Minor
Reporter: Liang Zhen (Inactive) Assignee: Liang Zhen (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 13700

 Description   

in osd_declare_write_commit():

       for (i = 0; i < npages; i++) {
            ......
            dmu_tx_hold_write(oh->ot_tx, obj->oo_db->db_object, offset, size);
            space += osd_count_not_mapped(obj, offset, size);

            offset = lnb->lnb_file_offset;
            size = lnb->len;
       }

they should be lnb[i].lnb_file_offset and lnb[i].len.



 Comments   
Comment by Liang Zhen (Inactive) [ 24/Apr/14 ]

patch is here: http://review.whamcloud.com/#/c/10079/

Comment by Liang Zhen (Inactive) [ 06/May/14 ]

patch is landed on master

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