]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: clean up the unnecessary client_lock for _conf->client_trace 36364/head
authorXiubo Li <xiubli@redhat.com>
Wed, 29 Jul 2020 06:58:31 +0000 (14:58 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 30 Jul 2020 07:44:58 +0000 (15:44 +0800)
commit2dd317845e2a0eebc5b7ec37df8c41aaefe04600
tree2f9e054e1f0ad4f6bea65310094598398d705107
parentd3d4ca5c2f2364d77aabb841be34e1c1c58312bf
client: clean up the unnecessary client_lock for _conf->client_trace

There is no need to make the "cct->_conf->client_trace" under the
client_lock, it is for the "ceph-syn" and it almost won't change,
even it will but it still won't cause any race.

For the "inode->ino" and "inode->snapid", since they won't change
once initialized when creating the inode, and the inode here will
be protected by the reference count, so no need the client_lock too.

Fixes: https://tracker.ceph.com/issues/46768
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/client/Client.cc