Whamcloud - gitweb
LU-17242 libcfs: use sched_show_task() for thread dumping 94/59394/2
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 23 May 2025 01:16:04 +0000 (08:16 +0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jun 2025 23:04:59 +0000 (23:04 +0000)
commit3ce73a088b155121f454804108ffa808982615a7
tree80e4e1f1e057fe643af9f367aacc8c0a980bc822
parent1d585ae0e8173d49b431f18b0996a63ad833a2f8
LU-17242 libcfs: use sched_show_task() for thread dumping

Use sched_show_task() for thread dumping, since it should be
available on all kernels that Lustre supports. On some kernels,
libcfs_debug_dumpstack() is unable to show the thread stack.
Replacing this function avoid that issue.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I421560b0d4223fd3503f4a3697a7615dd43bad8f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59394
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
config/lustre-core.m4
lustre/ptlrpc/ptlrpc_internal.h
lustre/ptlrpc/service.c