]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SUNRPC: convert RPC_TASK_* constants to enum
authorStephen Brennan <stephen.s.brennan@oracle.com>
Mon, 19 Aug 2024 15:58:59 +0000 (08:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 15:45:36 +0000 (16:45 +0100)
commit93200181c56ea04ce1b88c021d03aa33d20602b9
treeb1aa2eaabcf0c2a6ffcb5b37172dfb7319e64db6
parent64455c8051c3aedc71abb7ec8d47c80301f99f00
SUNRPC: convert RPC_TASK_* constants to enum

[ Upstream commit 0b108e83795c9c23101f584ef7e3ab4f1f120ef0 ]

The RPC_TASK_* constants are defined as macros, which means that most
kernel builds will not contain their definitions in the debuginfo.
However, it's quite useful for debuggers to be able to view the task
state constant and interpret it correctly. Conversion to an enum will
ensure the constants are present in debuginfo and can be interpreted by
debuggers without needing to hard-code them and track their changes.

Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Stable-dep-of: 5bbd6e863b15 ("SUNRPC: Prevent looping due to rpc_signal_task() races")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/sunrpc/sched.h