Bug 1699189

Summary: fix truncate lock to cover the write in tuncate clean
Product: [Community] GlusterFS Reporter: Kinglong Mee <kinglongmee>
Component: disperseAssignee: bugs <bugs>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: atumball, bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-7.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1732770 (view as bug list) Environment:
Last Closed: 2019-07-05 07:49:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1732770, 1732790    

Description Kinglong Mee 2019-04-12 04:01:06 UTC
Description of problem:

ec_truncate_clean does writing under the lock granted for truncate,
but the lock is calculated by ec_adjust_offset_up, so that,
the write in ec_truncate_clean is out of lock.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Worker Ant 2019-04-12 04:03:24 UTC
REVIEW: https://review.gluster.org/22552 (ec: fix truncate lock to cover the write in tuncate clean) posted (#1) for review on master by Kinglong Mee

Comment 2 Worker Ant 2019-04-12 11:38:25 UTC
REVIEW: https://review.gluster.org/22552 (ec: fix truncate lock to cover the write in tuncate clean) merged (#2) on master by Pranith Kumar Karampuri