Bug 761943 (GLUSTER-211) - libglusterfsclient: Race condition against vmplist in libgf_vmp_map_ghandle
Summary: libglusterfsclient: Race condition against vmplist in libgf_vmp_map_ghandle
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-211
Product: GlusterFS
Classification: Community
Component: libglusterfsclient
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Shehjar Tikoo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-13 08:09 UTC by Shehjar Tikoo
Modified: 2009-08-31 13:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTP
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Shehjar Tikoo 2009-08-13 08:09:55 UTC
We're not locking the vmplist when we need to add a new entry. This can cause a race condition between a thread trying to perform a new mount and another trying to search for an entry in the vmp list.

Comment 1 Anand Avati 2009-08-17 18:37:42 UTC
PATCH: http://patches.gluster.com/patch/1021 in master (libglusterfsclient: Sync access to VMP list on new entry addition)

Comment 2 Anand Avati 2009-08-17 18:37:58 UTC
PATCH: http://patches.gluster.com/patch/1018 in release-2.0 (libglusterfsclient: Sync access to VMP list on new entry addition)


Note You need to log in before you can comment on or make changes to this bug.