]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: fix race during optracker switches between enabled/disabled mode 8330/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 28 Mar 2016 12:08:53 +0000 (20:08 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 28 Mar 2016 12:17:26 +0000 (20:17 +0800)
commita5b4460214792bab4d7952a067dab6ad298fc372
tree803e552d245abc13c2cd141fb1f27e716baace4c
parenteeaab88e31d84c612fe16374c9b84e2cbd5072d6
common: fix race during optracker switches between enabled/disabled mode

The RWLock lock is made private to protect tracking_enabled changing
but we are reading tracking_enabled beyond its protection during
unregister_inflight_op(). So this is a slight race conditon.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/common/TrackedOp.cc