Bug 902174

Summary: Race condition in unlink
Product: [Community] GlusterFS Reporter: Raghavendra G <rgowdapp>
Component: quick-readAssignee: Raghavendra G <rgowdapp>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: amarts, gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:12:56 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 Raghavendra G 2013-01-21 05:20:52 UTC
Description of problem:

found this problem during code review. In qr_unlink, local->open_count is incremented by holding inode->lock. However, the same is decremented in qr_unlink_helper by holding a different lock (local->lock). This can result in a race-condition possibly leading to memory corruptions and other issues.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Vijay Bellur 2013-02-07 22:41:53 UTC
CHANGE: http://review.gluster.org/4396 (performance/quick-read: fix race condition in unlink) merged in release-3.3 by Anand Avati (avati)