Merge pull request #26022 from theanalyst/common-mclock-prio

common, osd: set mclock priority as 1 by default.

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
This commit is contained in:
Kefu Chai 2019-01-25 22:07:17 +08:00 committed by GitHub
commit cc26a67890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -293,11 +293,11 @@ namespace ceph {
}
void enqueue_strict(K cl, unsigned priority, T&& item) override final {
high_queue[priority].enqueue(cl, 0, std::move(item));
high_queue[priority].enqueue(cl, 1, std::move(item));
}
void enqueue_strict_front(K cl, unsigned priority, T&& item) override final {
high_queue[priority].enqueue_front(cl, 0, std::move(item));
high_queue[priority].enqueue_front(cl, 1, std::move(item));
}
void enqueue(K cl, unsigned priority, unsigned cost, T&& item) override final {

View File

@ -105,7 +105,7 @@ namespace ceph {
Request&& item) override final {
queue.enqueue_front(client_info_mgr.osd_op_type(item),
priority,
0u,
1u,
std::move(item));
}