From 33339c7754875eb7e513345ee6b26a9b2b4d2707 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Tue, 7 Oct 2014 14:03:39 +0200 Subject: [PATCH] common: set_ioprio debug message including pid Signed-off-by: Loic Dachary --- src/common/Thread.h | 1 + src/common/WorkQueue.cc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/common/Thread.h b/src/common/Thread.h index cc3c472745c..8c0b7451492 100644 --- a/src/common/Thread.h +++ b/src/common/Thread.h @@ -42,6 +42,7 @@ class Thread { public: const pthread_t &get_thread_id(); + pid_t get_pid() const { return pid; } bool is_started(); bool am_self(); int kill(int signal); diff --git a/src/common/WorkQueue.cc b/src/common/WorkQueue.cc index 0fbdbf10893..5c7fefc4349 100644 --- a/src/common/WorkQueue.cc +++ b/src/common/WorkQueue.cc @@ -271,6 +271,10 @@ void ThreadPool::set_ioprio(int cls, int priority) for (set::iterator p = _threads.begin(); p != _threads.end(); ++p) { + ldout(cct,10) << __func__ + << " class " << cls << " priority " << priority + << " pid " << (*p)->get_pid() + << dendl; int r = (*p)->set_ioprio(cls, priority); if (r < 0) lderr(cct) << " set_ioprio got " << cpp_strerror(r) << dendl; -- 2.47.3