From: Loic Dachary Date: Tue, 7 Oct 2014 12:03:39 +0000 (+0200) Subject: common: set_ioprio debug message including pid X-Git-Tag: v0.87~32^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=efb23b86c64630e97a6f5a446fd0a372824dfebb;p=ceph.git common: set_ioprio debug message including pid Signed-off-by: Loic Dachary (cherry picked from commit 33339c7754875eb7e513345ee6b26a9b2b4d2707) --- diff --git a/src/common/Thread.h b/src/common/Thread.h index cc3c472745cc..8c0b74514926 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 0fbdbf108930..5c7fefc43493 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;