Whamcloud - gitweb
LU-9859 libcfs: add watchdog for ptlrpc service threads. 18/33018/24
authorNeilBrown <neilb@suse.com>
Mon, 19 Nov 2018 15:32:47 +0000 (10:32 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 23 Jan 2019 09:19:42 +0000 (09:19 +0000)
commitfc9de679a4c2294e0cd3b084c8f0dd473342a6b9
treef6c8f7ec44cf96ac73933e89160d3820c86f3b46
parenta9b830da51bd4d37cb7188c11ab101a40bc57f7f
LU-9859 libcfs: add watchdog for ptlrpc service threads.

If a ptlrpc thread takes longer than expected, it
can be used to get a stack trace to see where the
problem is.

This patch moves this functionality out of libcfs
by using a delayed work struct to report a back
trace of the thread if it ever fires.

Change-Id: I8f54df430322f0751b179f67284018e576defc08
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/33018
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs.h
libcfs/libcfs/Makefile.in
libcfs/libcfs/debug.c
libcfs/libcfs/watchdog.c [deleted file]
lustre/include/lustre_net.h
lustre/ldlm/ldlm_lib.c
lustre/ptlrpc/service.c