Commit 6f0e029e authored by Stephen Brennan's avatar Stephen Brennan Committed by Greg Kroah-Hartman
Browse files

SUNRPC: convert RPC_TASK_* constants to enum



[ Upstream commit 0b108e83 ]

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: default avatarStephen Brennan <stephen.s.brennan@oracle.com>
Signed-off-by: default avatarAnna Schumaker <anna.schumaker@oracle.com>
Stable-dep-of: 5bbd6e86 ("SUNRPC: Prevent looping due to rpc_signal_task() races")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a7c41830
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment