]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
OSD: Remove shard lock that mClockScheduler use when updating conf
authorNitzanMordhai <nmordech@redhat.com>
Thu, 20 Oct 2022 06:29:30 +0000 (06:29 +0000)
committerNitzanMordhai <nmordech@redhat.com>
Fri, 21 Oct 2022 06:47:54 +0000 (06:47 +0000)
When mClockScheduler uses bench to determine conf. values a deadlock
can occur if the update scheduler config run during consume_map already started.

Fixes: https://tracker.ceph.com/issues/57699
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
src/osd/OSD.cc

index 04a1b3608aa2b5c80ed2bdce8ca57e6a75622838..b13583cde3a3c2b074a25ae8cb69cc85952a268f 100644 (file)
@@ -10496,7 +10496,6 @@ void OSDShard::unprime_split_children(spg_t parent, unsigned old_pg_num)
 
 void OSDShard::update_scheduler_config()
 {
-  std::lock_guard l(shard_lock);
   scheduler->update_configuration();
 }