]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: add lock protection for readdir against gc 15329/head
authorGui Hecheng <guihecheng@cmss.chinamobile.com>
Sat, 27 May 2017 02:03:59 +0000 (10:03 +0800)
committerGui Hecheng <guihecheng@cmss.chinamobile.com>
Wed, 31 May 2017 09:29:52 +0000 (17:29 +0800)
commit3b1d78bd57a3146abee0913a0a12a5861d01a0bc
tree3ac063308250aa6dbbb0405cfe8cb74f524ca64d
parent814a6f3b4b9c02a7d587e59e8440090e8e67a5f8
rgw_file: add lock protection for readdir against gc

The state.mtx protects state.events accessed both from readdir and gc.
Fixes: http://tracker.ceph.com/issues/20121
Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
src/rgw/rgw_file.cc