]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/MgrClient: guard send_pgstats() with lock
authorKefu Chai <kchai@redhat.com>
Thu, 15 Mar 2018 05:30:34 +0000 (13:30 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 15 Mar 2018 05:33:56 +0000 (13:33 +0800)
commitb17ff3c54b38c37f715a8cd165eba2c6b79f8d70
tree4dd60e7c2fd51a29faa10f8b00b7ec8ac7f74067
parent76080ed795868a4e153d7659879d847d22e8fc54
mgr/MgrClient: guard send_pgstats() with lock

ms_handle_reset() races with send_pgstats(), and the latter could
reference a session with a null connection. so we need to guard
send_pgstats() with a lock.

Fixes: http://tracker.ceph.com/issues/23370
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/MgrClient.cc
src/mgr/MgrClient.h