diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2018-09-11 14:19:42 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-09-18 04:09:01 +0000 |
commit | 484f417da945cf83afdbf136bb4817311862a8d2 (patch) | |
tree | 677eaa9f90b4cf5de59598fded7abd8984014962 /autogen.sh | |
parent | d345ac09548dbb486c1619a27cb70149b3ca962a (diff) | |
download | glusterfs-484f417da945cf83afdbf136bb4817311862a8d2.tar.gz glusterfs-484f417da945cf83afdbf136bb4817311862a8d2.tar.xz glusterfs-484f417da945cf83afdbf136bb4817311862a8d2.zip |
glusterd: acquire lock to update volinfo structure
Problem: With commit cb0339f92, we are using a separate syntask
for restart_bricks. There can be a situation where two threads
are accessing the same volinfo structure at the same time and
updating volinfo structure. This can lead volinfo to have
inconsistent values and assertion failures because of unexpected
values.
Solution: While updating the volinfo structure, acquire a
store_volinfo_lock, and release the lock only when the thread
completed its critical section part.
Fixes: bz#1627610
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Change-Id: I545e4e2368e3285d8f7aa28081ff4448abb72f5d
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions