This bug was initially created as a copy of Bug #1699189 I am copying this bug because: 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:
REVIEW: https://review.gluster.org/22560 (ec: fix truncate lock to cover the write in tuncate clean) posted (#1) for review on release-5 by Kinglong Mee
REVIEW: https://review.gluster.org/22560 (ec: fix truncate lock to cover the write in tuncate clean) merged (#2) on release-5 by Shyamsundar Ranganathan