]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: set_ioprio debug message including pid
authorLoic Dachary <loic-201408@dachary.org>
Tue, 7 Oct 2014 12:03:39 +0000 (14:03 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Tue, 7 Oct 2014 18:39:53 +0000 (20:39 +0200)
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 33339c7754875eb7e513345ee6b26a9b2b4d2707)

src/common/Thread.h
src/common/WorkQueue.cc

index 95f63b46c5ca69cc498865a116bd07e79c35e0f0..8173ca5d22853d25eb6f75d7f58b2fd87b07ef1b 100644 (file)
@@ -41,6 +41,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);
index 42f402fe13bf598c46c02e7be205dad7fc7665d3..0f8bc9d4f936959ed2b7fd3450ba1b96d759c427 100644 (file)
@@ -271,6 +271,10 @@ void ThreadPool::set_ioprio(int cls, int priority)
   for (set<WorkThread*>::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;