]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: unlock osd_lock when tweaking osd settings
authorKefu Chai <kchai@redhat.com>
Sun, 30 Dec 2018 13:57:04 +0000 (21:57 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 30 Dec 2018 15:19:02 +0000 (23:19 +0800)
commit8e94b081506fa9fbdbea09113f1549772bb6ec04
tree8320ecec761bcbb1d8fc1cff69ac72bd8773ebc9
parent5c628a1cc9f703351ad3bd708e908df7c9a411bb
osd: unlock osd_lock when tweaking osd settings

unlock osd_lock when serving "debug kick_recovery_wq" command

we need to unlock osd_lock temporarily when updating the osd settings,
otherwise we will run into assert failure. because
OSD::handle_conf_change() acquires the osd_lock which is not a recursive
lock.

Fixes: http://tracker.ceph.com/issues/37751
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSD.cc