]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file.h: fix potential data race condition
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 21 Feb 2017 12:55:40 +0000 (13:55 +0100)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Apr 2017 10:16:17 +0000 (18:16 +0800)
commit3f7b411e1e304e8a6f295dc50b8cf3c6c496f4cc
tree13a7fa6ec842d60a7591a704c9be9761d62d932b
parentd6b4ff076af2c09b389173527d279e879439f2f2
rgw_file.h: fix potential data race condition

Fix for:

CID 1399581 (#1 of 1): Data race condition (MISSING_LOCK)
 missing_lock: Accessing this->state.atime without holding lock
 rgw::RGWFileHandle.mtx. Elsewhere, "_ZN3rgw13RGWFileHandle5StateE.atime"
 is accessed with rgw::RGWFileHandle.mtx held 2 out of 3 times
 (2 of these accesses strongly imply that it is necessary).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_file.h