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/22552 (ec: fix truncate lock to cover the write in tuncate clean) posted (#1) for review on master by Kinglong Mee
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