Whamcloud - gitweb
LU-4624 statahead: Improve statahead debug messages 60/9360/3
authorChristopher J. Morrone <morrone2@llnl.gov>
Thu, 20 Feb 2014 19:08:44 +0000 (11:08 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 25 Mar 2014 00:09:35 +0000 (00:09 +0000)
commitc5f0bae20e88abb825dff546d7fd6437e34063f8
tree52fe76d832b9c8297e67f073948275fd29b76cf9
parent6760f383f6cd0964e70250723b9d24bce13b5318
LU-4624 statahead: Improve statahead debug messages

The statahead debug messages include the pid of the current
process in their body.  This is both redudant (because all
lustre log messages contain the pid), and sometimes downright
misleading.  For instance the messages would say something like
"stopping statahead thread 3446".  One would probably think
that 3446 is the pid of the process that is being stopped,
but in fact it was the pid of the caller issuing the stop signal.

We remove all superfluous pids from the messages.

Next we have the ll_statahead_thread() and the ll_agl_thread() record
their respective pids in their respective ptlrpc_thread structures.
This allows to print the pid of the thread that we are trying to
stop (which is actually useful info) from other threads, such as those
calling ll_stop_statahead().

Change-Id: Id4def179e02e9097f3f22048192d45bdf15b0aa8
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/9360
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/statahead.c