[Bugs] [Bug 1490642] glusterfs client crash when removing directories
bugzilla at redhat.com
bugzilla at redhat.com
Mon Oct 16 10:33:17 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1490642
--- Comment #10 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18517 committed in master by Raghavendra G
(rgowdapp at redhat.com)
------
commit 206120126d455417a81a48ae473d49be337e9463
Author: Zhang Huan <zhanghuan at open-fs.com>
Date: Tue Sep 5 11:36:25 2017 +0800
cluster/dht: fix crash when deleting directories
In DHT, after locks on all subvolumes are acquired, it would perform the
following steps sequentially,
1. send remove dir on all other subvolumes except the hashed one in a loop;
2. wait for all pending rmdir to be done
3. remove dir on the hashed subvolume
The problem is that in step 1 there is a check to skip hashed subvolume
in the loop. If the last subvolume to check is actually the
hashed one, and step 3 is quickly done before the last and hashed
subvolume is checked, by accessing shared context data be destroyed in
step 3, would cause a crash.
Fix by saving shared data in a local variable to access later in the
loop.
Change-Id: I8db7cf7cb262d74efcb58eb00f02ea37df4be4e2
BUG: 1490642
Signed-off-by: Zhang Huan <zhanghuan at open-fs.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=PDGLz8TtCw&a=cc_unsubscribe
More information about the Bugs
mailing list