Bug 1624701

Summary: error-out {inode,entry}lk fops with all-zero lk-owner
Product: [Community] GlusterFS Reporter: Pranith Kumar K <pkarampu>
Component: locksAssignee: bugs <bugs>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-26 06:52:06 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:

Description Pranith Kumar K 2018-09-03 06:22:25 UTC
Description of problem:
    Problem:
    Sometimes we find that developers forget to assign lk-owner for an
    inodelk/entrylk/lk before writing code to wind these fops. locks
    xlator at the moment allows this operation. This leads to multiple
    threads in the same client being able to get locks on the inode
    because lk-owner is same and transport is same. So isolation
    with locks can't be achieved.
    
    Fix:
    Disallow locks with lk-owner zero.

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 2018-09-03 06:23:32 UTC
REVIEW: https://review.gluster.org/21058 (features/locks: error-out {inode,entry}lk fops with all-zero lk-owner) posted (#1) for review on master by Pranith Kumar Karampuri

Comment 2 Worker Ant 2019-04-01 10:13:42 UTC
REVIEW: https://review.gluster.org/22469 (cluster/afr: Send inodelk/entrylk with non-zero lk-owner) posted (#1) for review on master by Pranith Kumar Karampuri

Comment 3 Worker Ant 2019-04-02 12:19:19 UTC
REVIEW: https://review.gluster.org/22469 (cluster/afr: Send inodelk/entrylk with non-zero lk-owner) merged (#3) on master by Pranith Kumar Karampuri

Comment 4 Worker Ant 2019-04-16 07:08:54 UTC
REVIEW: https://review.gluster.org/21058 (features/locks: error-out {inode,entry}lk fops with all-zero lk-owner) merged (#5) on master by Krutika Dhananjay

Comment 5 Worker Ant 2019-04-16 17:07:08 UTC
REVIEW: https://review.gluster.org/22581 (Revert \"features/locks: error-out {inode,entry}lk fops with all-zero lk-owner\") posted (#2) for review on master by Atin Mukherjee

Comment 6 Worker Ant 2019-04-16 19:02:11 UTC
REVIEW: https://review.gluster.org/22582 (features/sdfs: Assign unique lk-owner for entrylk fop) posted (#1) for review on master by Pranith Kumar Karampuri

Comment 7 Worker Ant 2019-04-17 08:18:12 UTC
REVIEW: https://review.gluster.org/22581 (Revert \"features/locks: error-out {inode,entry}lk fops with all-zero lk-owner\") merged (#3) on master by Pranith Kumar Karampuri

Comment 8 Worker Ant 2019-04-17 09:01:37 UTC
REVIEW: https://review.gluster.org/22586 (cluster/afr: Set lk-owner before inodelk/entrylk/lk) posted (#1) for review on master by Pranith Kumar Karampuri

Comment 9 Worker Ant 2019-04-22 08:47:34 UTC
REVIEW: https://review.gluster.org/22586 (cluster/afr: Set lk-owner before inodelk/entrylk/lk) merged (#3) on master by Pranith Kumar Karampuri

Comment 10 Worker Ant 2019-04-22 14:04:12 UTC
REVIEW: https://review.gluster.org/22582 (features/sdfs: Assign unique lk-owner for entrylk fop) merged (#3) on master by Raghavendra G

Comment 11 Worker Ant 2019-04-23 06:00:32 UTC
REVIEW: https://review.gluster.org/22604 (features/locks: error-out {inode,entry}lk fops with all-zero lk-owner) posted (#1) for review on master by Pranith Kumar Karampuri

Comment 12 Worker Ant 2019-04-26 06:52:06 UTC
REVIEW: https://review.gluster.org/22604 (features/locks: error-out {inode,entry}lk fops with all-zero lk-owner) merged (#2) on master by Amar Tumballi