1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2016 Red Hat Inc.
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
18 #include "osd/mClockOpClassQueue.h"
19 #include "common/dout.h"
21 namespace dmc
= crimson::dmclock
;
22 using namespace std::placeholders
;
24 #define dout_context cct
25 #define dout_subsys ceph_subsys_osd
27 #define dout_prefix *_dout
33 * class mClockOpClassQueue
36 mClockOpClassQueue::mClockOpClassQueue(CephContext
*cct
) :
37 queue(std::bind(&mClockOpClassQueue::op_class_client_info_f
, this, _1
),
38 cct
->_conf
->osd_op_queue_mclock_anticipation_timeout
),
44 const dmc::ClientInfo
* mClockOpClassQueue::op_class_client_info_f(
45 const osd_op_type_t
& op_type
)
47 return client_info_mgr
.get_client_info(op_type
);
50 // Formatted output of the queue
51 void mClockOpClassQueue::dump(ceph::Formatter
*f
) const {