From: J. Eric Ivancich Date: Wed, 30 Aug 2017 16:54:23 +0000 (-0400) Subject: osd: replace mclock subop opclass w/ rep_op opclass; combine duplicated code X-Git-Tag: v13.0.1~461^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18194%2Fhead;p=ceph.git osd: replace mclock subop opclass w/ rep_op opclass; combine duplicated code The OSD subops were replaced with replication ops (i.e., MSG_OSD_REPOP and MSG_OSD_REPOPREPLY) in jewel. mClock incorrectly used them as an op class rather than the newer replication ops. This fixes that and places eight ops into the repop class -- MSG_OSD_REPOP, MSG_OSD_REPOPREPLY, MSG_OSD_PG_UPDATE_LOG_MISSING, MSG_OSD_PG_UPDATE_LOG_MISSING_REPLY, MSG_OSD_EC_WRITE, MSG_OSD_EC_WRITE_REPLY, MSG_OSD_EC_READ, and MSG_OSD_EC_READ_REPLY. This alo removes dupliated code related to op classes in mClockOpClassQueue and mClockClientQueue and combines into mClockOpClassSupport. The three configuration options osd_op_queue_mclock_osd_subop_{res,wgt,lim} have also been replaced with osd_op_queue_mclock_osd_rep_op_{res,wgt,lim}. This also removes OpQueueItem::OpQueueable::op_type_t::osd_subop since it's not a category core ceph recognizes and is instead it's part of an mclock view of ops. Signed-off-by: J. Eric Ivancich --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 15154dd8039de..210b48eefdb3d 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -681,9 +681,9 @@ OPTION(osd_op_queue_cut_off, OPT_STR) // Min priority to go to strict queue. (lo OPTION(osd_op_queue_mclock_client_op_res, OPT_DOUBLE) OPTION(osd_op_queue_mclock_client_op_wgt, OPT_DOUBLE) OPTION(osd_op_queue_mclock_client_op_lim, OPT_DOUBLE) -OPTION(osd_op_queue_mclock_osd_subop_res, OPT_DOUBLE) -OPTION(osd_op_queue_mclock_osd_subop_wgt, OPT_DOUBLE) -OPTION(osd_op_queue_mclock_osd_subop_lim, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_osd_rep_op_res, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_osd_rep_op_wgt, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_osd_rep_op_lim, OPT_DOUBLE) OPTION(osd_op_queue_mclock_snap_res, OPT_DOUBLE) OPTION(osd_op_queue_mclock_snap_wgt, OPT_DOUBLE) OPTION(osd_op_queue_mclock_snap_lim, OPT_DOUBLE) diff --git a/src/common/options.cc b/src/common/options.cc index dc37ad48a22ba..e61e116577db8 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1982,9 +1982,9 @@ std::vector