Red Hat Bugzilla – Bug 902174
Race condition in unlink
Last modified: 2013-07-24 13:12:56 EDT
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):
Steps to Reproduce:
CHANGE: http://review.gluster.org/4396 (performance/quick-read: fix race condition in unlink) merged in release-3.3 by Anand Avati (firstname.lastname@example.org)