]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/OSD: move send_beacon into tick_without_osd_lock
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 6 Jul 2017 04:17:19 +0000 (12:17 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 7 Jul 2017 01:55:28 +0000 (09:55 +0800)
commitcb1800fb19e65014f837184a2c6a61d04e1da039
tree15e1ada4c72be398dd8acce3ef1654ace41cf014
parent74e5ac96f737f676d7b51defe9ae288827b7ab8c
osd/OSD: move send_beacon into tick_without_osd_lock

So we don't ask for the big osd_lock, which is potential expensive
and shall be avoided under any cases.

Also re-use min_last_epoch_clean_lock
to access last_sent_beacon safely(we have two callers - ms_handle_connect and
tick_without_osd_lock, hence may have potential races).

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc