]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "rgw_file.h: fix potential data race condition"
authorGui Hecheng <guihecheng@cmss.chinamobile.com>
Wed, 12 Apr 2017 08:46:49 +0000 (16:46 +0800)
committerGui Hecheng <guihecheng@cmss.chinamobile.com>
Fri, 14 Apr 2017 08:17:01 +0000 (16:17 +0800)
This reverts commit 3f7b411e1e304e8a6f295dc50b8cf3c6c496f4cc.
Causing hung up due to double lock.

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
src/rgw/rgw_file.h

index 42439bedf95482b1c93379167f61f9d3b7537d94..3d671a0dee2f853c5441b17071ac4de907e960bb 100644 (file)
@@ -534,7 +534,6 @@ namespace rgw {
     }
 
     void set_times(real_time t) {
-      lock_guard guard(mtx);
       state.ctime = real_clock::to_timespec(t);
       state.mtime = state.ctime;
       state.atime = state.ctime;