From: Gui Hecheng Date: Wed, 12 Apr 2017 08:46:49 +0000 (+0800) Subject: Revert "rgw_file.h: fix potential data race condition" X-Git-Tag: v12.0.2~64^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=accf8cfd22b25650b909f3ee2c2cd5f56203dc2e;p=ceph.git Revert "rgw_file.h: fix potential data race condition" This reverts commit 3f7b411e1e304e8a6f295dc50b8cf3c6c496f4cc. Causing hung up due to double lock. Signed-off-by: Gui Hecheng --- diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index 42439bedf954..3d671a0dee2f 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -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;